summaryrefslogtreecommitdiff
path: root/package/base-files/files/usr/share/udhcpc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-04 19:49:34 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-04 19:49:34 +0200
commit8a2754e0fbdea7497281327f2896be2a1253a107 (patch)
treebc7c400745fde54e6fb7a010fcb026258564d3bc /package/base-files/files/usr/share/udhcpc
parent9bd4456c5a83c3474fdf9fe5cf14004a0874e2c8 (diff)
parent2d3aaf1664850031f5497e121dc82ab65f63641a (diff)
Merge branch 'master' of ssh://openadk.org/git/openadk
Diffstat (limited to 'package/base-files/files/usr/share/udhcpc')
-rwxr-xr-xpackage/base-files/files/usr/share/udhcpc/default.script38
1 files changed, 0 insertions, 38 deletions
diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script
deleted file mode 100755
index 02e4a7a3c..000000000
--- a/package/base-files/files/usr/share/udhcpc/default.script
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-if [[ -z $1 ]]; then
- echo "Error: should be run by udhcpc"
- exit 1
-fi
-
-RESOLV_CONF=/tmp/resolv.conf
-
-case $1 in
-(deconfig)
- ip addr flush $interface
- ;;
-(renew|bound)
- ip addr add $ip/${mask:-24} brd + dev $interface
-
- if [[ -n $router ]]; then
- echo "deleting routers"
- while ip route del default >&- 2>&-; do :; done
-
- for i in $router; do
- echo "adding router $i"
- ip route add to default via $i
- done
- fi
-
- echo -n >$RESOLV_CONF
- ${domain:+echo search $domain} >>$RESOLV_CONF
- for i in $dns; do
- echo "adding dns $i"
- echo "nameserver $i" >>$RESOLV_CONF
- done
-
- # user rules
- [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
-;;
-esac
-
-exit $?