diff options
| author | Jonathan Bauer | 2013-01-08 15:30:41 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2013-01-08 15:30:41 +0100 |
| commit | 226b19529a6cb960b6c4ff6bd1681e5fae9aaa68 (patch) | |
| tree | a7444020254d1342c48205fc6a08877f21f34f34 /remote/tools/base | |
| parent | xorg & ldm (diff) | |
| download | tm-scripts-226b19529a6cb960b6c4ff6bd1681e5fae9aaa68.tar.gz tm-scripts-226b19529a6cb960b6c4ff6bd1681e5fae9aaa68.tar.xz tm-scripts-226b19529a6cb960b6c4ff6bd1681e5fae9aaa68.zip | |
[plymouth] remove default prefix
Diffstat (limited to 'remote/tools/base')
| -rwxr-xr-x | remote/tools/base/data/etc/udhcpc.default.script | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remote/tools/base/data/etc/udhcpc.default.script b/remote/tools/base/data/etc/udhcpc.default.script index 02ca9b05..fe98dcf7 100755 --- a/remote/tools/base/data/etc/udhcpc.default.script +++ b/remote/tools/base/data/etc/udhcpc.default.script @@ -12,6 +12,12 @@ set > /tmp/udhcpc_env case $1 in bound|renew) + [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" + [ -n "$subnet" ] && NETMASK="netmask $subnet" + + ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $interface + ip route add default via $router + echo "ip=$ip" > $IP_CONF echo "subnet=$subnet" >> $IP_CONF echo "broadcast=$broadcast" >> $IP_CONF |
