X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcasper-bottom%2F23networking;h=116b1d650668256fa67c2e29a850c177b9ba3287;hb=beec4f9fb766be23d575b070e398639d5a4a9c9d;hp=723877302fd8a7a9fcbd70a5931b338e8b1090c3;hpb=9a7f83110cfb153d853f5d074968a661121d4e07;p=live-boot-grml.git diff --git a/scripts/casper-bottom/23networking b/scripts/casper-bottom/23networking index 7238773..116b1d6 100755 --- a/scripts/casper-bottom/23networking +++ b/scripts/casper-bottom/23networking @@ -4,7 +4,7 @@ PREREQ="" DESCRIPTION="Preconfiguring networking..." IFFILE="/root/etc/network/interfaces" -. /scripts/functions +. /scripts/casper-functions prereqs() { @@ -21,35 +21,83 @@ esac log_begin_msg "$DESCRIPTION" +if [ "${STATICIP}" == "frommedia" -a -e "$IFFILE" ] ; then + # will use existent /etc/network/interfaces + log_end_msg + exit 0 +fi + cat > "$IFFILE" <> "$IFFILE" <> "$IFFILE" <> "$IFFILE" <> "$IFFILE" < /root/etc/resolv.conf <> /root/var/log/netboot.config + fi +fi log_end_msg