X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fcasper-bottom%2F23networking;h=f4103211098997561ce2c7e322bf0804f4b89722;hb=refs%2Ftags%2Fdebian%2F1.71%2Bdebian-1;hp=723877302fd8a7a9fcbd70a5931b338e8b1090c3;hpb=4a0b1ba4d428c623d14bae7f0db85c80abb0da0a;p=live-boot-grml.git diff --git a/scripts/casper-bottom/23networking b/scripts/casper-bottom/23networking index 7238773..f410321 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,48 @@ esac log_begin_msg "$DESCRIPTION" +if [ "${STATICIP}" == "frommedia" ] && [ -e "$IFFILE" ] ; then + # will use existent /etc/network/interfaces + log_end_msg + exit 0 +fi + cat > "$IFFILE" <> "$IFFILE" <> "$IFFILE" <> "$IFFILE" <> "$IFFILE" <