refresh patches against Debian's 3.0~b6-1
[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 --- a/scripts/boot/9990-cmdline-old
15 +++ b/scripts/boot/9990-cmdline-old
16 @@ -140,6 +140,11 @@ Cmdline_old ()
17                                 export NFS_COW
18                                 ;;
19  
20 +                       nodhcphostname)
21 +                               NODHCPHOSTNAME="Yes"
22 +                               export NODHCPHOSTNAME
23 +                               ;;
24 +
25                         nofstab)
26                                 NOFSTAB="true"
27                                 export NOFSTAB