Release new version 2.0.12-1+grml.01.
[live-boot-grml.git] / debian / patches / 09_bootoption_noudev.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 09_bootoption_noudev.dpatch by Christian Hofstaedtler <ch@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: honor bootoption "noudev"
6
7 @DPATCH@
8 diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking
9 index 9554b77..f85b29e 100755
10 --- a/scripts/live-bottom/23networking
11 +++ b/scripts/live-bottom/23networking
12 @@ -46,8 +46,13 @@ iface lo inet loopback
13  
14  EOF
15  
16 -udevadm trigger
17 -udevadm settle
18 +if grep -q noudev /proc/cmdline
19 +then
20 +       log_begin_msg "Skipping udev as requested via bootoption noudev."
21 +else
22 +       udevadm trigger
23 +       udevadm settle
24 +fi
25  
26  if [ -z "${NETBOOT}" -a -n "${STATICIP}" -a "${STATICIP}" != "frommedia" ]
27  then