10_support_ethdevice.dpatch: support setting NIC name via ethdevice
[live-initramfs-grml.git] / debian / patches / 10_support_ethdevice.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 10_support_ethdevice.dpatch by <mika@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Support bootoption ethdevice
6
7 @DPATCH@
8
9 diff --git a/scripts/live b/scripts/live
10 index db1d355..797a5da 100755
11 --- a/scripts/live
12 +++ b/scripts/live
13 @@ -66,6 +66,11 @@ Arguments ()
14                                 set -x
15                                 ;;
16  
17 +                       ethdevice=*)
18 +                               DEVICE="${ARGUMENT#ethdevice=}"
19 +                               export DEVICE
20 +                               ;;
21 +
22                         fetch=*)
23                                  FETCH="${ARGUMENT#fetch=}"
24                                  export FETCH