diff options
author | Patrick Simianer <p@simianer.de> | 2013-01-22 11:42:48 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2013-01-22 11:42:48 +0100 |
commit | ad228600dba989475744f9a2142ca4d53ee8cdbe (patch) | |
tree | 120f633b91795749c376cdacc60ae80ecba68eae /bin |
init
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/busybox | bin | 0 -> 2057504 bytes | |||
-rwxr-xr-x | bin/ifup | 7 | ||||
-rwxr-xr-x | bin/resume | bin | 0 -> 1317856 bytes | |||
l--------- | bin/sh | 1 | ||||
-rwxr-xr-x | bin/udhcpc.script | 47 | ||||
l--------- | bin/vgchange | 1 |
6 files changed, 56 insertions, 0 deletions
diff --git a/bin/busybox b/bin/busybox Binary files differnew file mode 100755 index 0000000..3d56a2d --- /dev/null +++ b/bin/busybox diff --git a/bin/ifup b/bin/ifup new file mode 100755 index 0000000..2b60f1c --- /dev/null +++ b/bin/ifup @@ -0,0 +1,7 @@ +#!/bin/sh + +DEV=$1 + +ifconfig $DEV up +udhcpc -t 5 -q -s /bin/udhcpc.script + diff --git a/bin/resume b/bin/resume Binary files differnew file mode 100755 index 0000000..977924b --- /dev/null +++ b/bin/resume @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/bin/udhcpc.script b/bin/udhcpc.script new file mode 100755 index 0000000..40ee738 --- /dev/null +++ b/bin/udhcpc.script @@ -0,0 +1,47 @@ +#!/bin/sh +# udhcpc script edited by Tim Riker <Tim@Rikers.org> + +RESOLV_CONF="/etc/resolv.conf" + +[ -n "$1" ] || { echo "Error: should be called from udhcpc"; exit 1; } + +NETMASK="" +[ -n "$subnet" ] && NETMASK="netmask $subnet" +BROADCAST="broadcast +" +[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" + +case "$1" in + deconfig) + echo "Setting IP address 0.0.0.0 on $interface" + ifconfig $interface 0.0.0.0 + ;; + + renew|bound) + echo "Setting IP address $ip on $interface" + ifconfig $interface $ip $NETMASK $BROADCAST + + if [ -n "$router" ] ; then + echo "Deleting routers" + while route del default gw 0.0.0.0 dev $interface ; do + : + done + + metric=0 + for i in $router ; do + echo "Adding router $i" + route add default gw $i dev $interface metric $((metric++)) + done + fi + + echo "Recreating $RESOLV_CONF" + echo -n > $RESOLV_CONF-$$ + [ -n "$domain" ] && echo "search $domain" >> $RESOLV_CONF-$$ + for i in $dns ; do + echo " Adding DNS server $i" + echo "nameserver $i" >> $RESOLV_CONF-$$ + done + mv $RESOLV_CONF-$$ $RESOLV_CONF + ;; +esac + +exit 0 diff --git a/bin/vgchange b/bin/vgchange new file mode 120000 index 0000000..9428656 --- /dev/null +++ b/bin/vgchange @@ -0,0 +1 @@ +lvm
\ No newline at end of file |