X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpatches%2F15_networking_grml.patch;h=e71fab63bb005e9ce8645c9cfdc0fbeb98f8cde6;hb=d6df506b889526a9c20e1750bc58f0e4b7fbc744;hp=81b4c0dbeadcfa165a6450ca5e769a85d33d3637;hpb=8424e93b27a3c5ae551ff1a5c456d0de96fc67c8;p=live-boot-grml.git diff --git a/debian/patches/15_networking_grml.patch b/debian/patches/15_networking_grml.patch old mode 100755 new mode 100644 index 81b4c0d..e71fab6 --- a/debian/patches/15_networking_grml.patch +++ b/debian/patches/15_networking_grml.patch @@ -10,29 +10,13 @@ diff a/scripts/live-bottom/23networking_grml b/scripts/live-bottom/23networking_grml --- /dev/null -+++ b/scripts/live-bottom/23networking_grml -@@ -0,0 +1,107 @@ ++++ b/scripts/boot/9990-grml-networking.sh +@@ -0,0 +1,93 @@ +#!/bin/sh + +#set -e + -+# initramfs-tools header -+ -+PREREQ="" -+ -+prereqs() -+{ -+ echo "${PREREQ}" -+} -+ -+case "${1}" in -+ prereqs) -+ prereqs -+ exit 0 -+ ;; -+esac -+ -+. /scripts/live-functions ++Grml_Networking () { + +if [ -n "${NONETWORKING}" ]; then + exit 0 @@ -79,7 +63,7 @@ diff a/scripts/live-bottom/23networking_grml b/scripts/live-bottom/23networking_ + + # NODHCP or a previously run ipconfig mean that ifupdown should never + # touch this interface (IP-stack wise). -+ netconfig=/tmp/net-${interface}.conf ++ netconfig=/run/net-${interface}.conf + if [ -n "$NODHCP" ] || [ -e "${netconfig}" ]; then + method="manual" + fi @@ -120,3 +104,17 @@ diff a/scripts/live-bottom/23networking_grml b/scripts/live-bottom/23networking_ + echo>> $IFFILE +done + ++} +diff --git a/scripts/boot/9990-main.sh b/scripts/boot/9990-main.sh +index ef41fb0..2af5eb6 100755 +--- a/scripts/boot/9990-main.sh ++++ b/scripts/boot/9990-main.sh +@@ -194,6 +194,8 @@ Main () + + Swap + ++ Grml_Networking ++ + case "${UNIONFS}" in + unionfs-fuse) + umount "${rootmnt}/dev"