Subversion Repositories configs

Rev

Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 125
Line 5... Line 5...
5
SAVEDIR=/var/lib/dhclient
5
SAVEDIR=/var/lib/dhclient
6
ETCDIR=/etc/dhcp
6
ETCDIR=/etc/dhcp
7
interface=$1
7
interface=$1
8
 
8
 
9
eval "$(
9
eval "$(
10
declare | LC_ALL=C grep '^DHCP4_[A-Z_]*=' | while read opt; do
10
declare | LC_ALL=C grep '^DHCP4_[A-Z_]*=' | while read -r opt; do
11
    optname=${opt%%=*}
11
    optname=${opt%%=*}
12
    optname=${optname,,}
12
    optname=${optname,,}
13
    optname=new_${optname#dhcp4_}
13
    optname=new_${optname#dhcp4_}
14
    optvalue=${opt#*=}
14
    optvalue=${opt#*=}
15
    echo "$optname=$optvalue"
15
    echo "$optname=$optvalue"