aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2008-07-28 15:05:51 -0700
committerChris Gianelloni <wolf31o2@gentoo.org>2008-07-28 15:05:51 -0700
commit1ffb37f09c7ad077f9d9863ced18d64eeef7520b (patch)
tree84ee8078672ce860fea488445259773d75ecdbd5 /defaults/udhcpc.scripts
parentAdded the modules directory, which will be used to store the built-in modules... (diff)
downloadgenkernel-1ffb37f09c7ad077f9d9863ced18d64eeef7520b.tar.gz
genkernel-1ffb37f09c7ad077f9d9863ced18d64eeef7520b.tar.bz2
genkernel-1ffb37f09c7ad077f9d9863ced18d64eeef7520b.zip
Moving files from generic to defaults, since they are the defaults used globally.
Diffstat (limited to 'defaults/udhcpc.scripts')
-rw-r--r--defaults/udhcpc.scripts17
1 files changed, 17 insertions, 0 deletions
diff --git a/defaults/udhcpc.scripts b/defaults/udhcpc.scripts
new file mode 100644
index 0000000..a108a8b
--- /dev/null
+++ b/defaults/udhcpc.scripts
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+case ${1} in
+ bound)
+ [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
+ [ -n "$subnet" ] && NETMASK="netmask $subnet"
+ [ -n "$rootpath" ] && echo "$rootpath" > /rootpath
+ #[ -n "$router" ] && echo "$router" > /router
+ #[ -n "$dns" ] && echo "$dns" > /dns
+
+ busybox ifconfig $interface $ip $BROADCAST $NETMASK
+ ;;
+ deconfig)
+ busybox ifconfig $interface 0.0.0.0
+ ;;
+esac
+