X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpatches%2F36_support_dhcp_bootoption.patch;h=6691a9bee514edc8e9700ef16affc22a4c752b23;hb=b5809b75c8aabfef185edb36f141019e69f8b3de;hp=fffd18f78a17a2a6d642ea9897d2668ef0830259;hpb=7f450c201f6aa9434f1dae176882a0ee226fa4cf;p=live-boot-grml.git diff --git a/debian/patches/36_support_dhcp_bootoption.patch b/debian/patches/36_support_dhcp_bootoption.patch index fffd18f..6691a9b 100644 --- a/debian/patches/36_support_dhcp_bootoption.patch +++ b/debian/patches/36_support_dhcp_bootoption.patch @@ -1,16 +1,5 @@ ---- a/scripts/live -+++ b/scripts/live -@@ -399,7 +399,7 @@ - - for dev in $devlist ; do - param="$(get_ipconfig_para $dev)" -- if [ -n "$NODHCP" ] && [ "$param" = "$dev" ] ; then -+ if [ -n "$NODHCP" ] && [ "$param" = "$dev" ] && [ "$DHCP" != "Force" ] ; then - echo "Ignoring network device $dev due to nodhcp." | tee -a /live-boot.log - continue - fi ---- a/scripts/live-bottom/23networking_grml -+++ b/scripts/live-bottom/23networking_grml +--- a/scripts/boot/9990-grml-networking.sh ++++ b/scripts/boot/9990-grml-networking.sh @@ -75,6 +75,14 @@ method="manual" fi @@ -19,7 +8,7 @@ + # set, then dhcp should win over it as we default to dhcp and if + # nodhcp is used as default boot option but "dhcp" is added then it + # would be confusing to not get a working network setup -+ if [ "$DHCP" = "Force" ] ; then ++ if [ "$DHCP" = "true" ] ; then + method="dhcp" + fi +