#!/bin/bash for LIB_FILE in "/usr/share/zero-center/lib/common.sh" "/usr/share/lliurex/lliurex-srv-common/server-netfuncs.sh" ; do [ -r "$LIB_FILE" ] || exit 1 . $LIB_FILE done # Fix /etc/network/interfaces cat > /etc/network/interfaces << EOF auto lo iface lo inet loopback EOF set_interfaces $1 $2 $3 exit 0