Add extra patch for fixing output message and partially revert 2ad3c30d9ef0cc1ea2c7df...
[live-boot-grml.git] / debian / patches / 11_dhcphostname.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 11_dhcphostname.dpatch by Andreas Thienemann <andreas@bawue.net>
3 ## and Michael Prokop <mika@grml.org>
4 ##
5 ## All lines beginning with `## DP:' are a description of the patch.
6 ## DP: Support disabling setting hostname via DNS info
7
8 @DPATCH@
9
10 Support 'nodhcphostname' option which will disable setting the
11 hostname of the booted system according to the DNS information.
12 This patch takes care of the netboot case.
13
14 diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking
15 index 9554b77..9270e9c 100755
16 --- a/scripts/live
17 +++ b/scripts/live
18 @@ -216,6 +216,11 @@ Arguments ()
19                                 export NOACCESSIBILITY
20                                 ;;
21  
22 +                       nodhcphostname)
23 +                               NODHCPHOSTNAME="Yes"
24 +                               export NODHCPHOSTNAME
25 +                               ;;
26 +
27                         nofastboot)
28                                 NOFASTBOOT="Yes"
29                                 export NOFASTBOOT
30