From 3d007394805916ceb2214bfd7e06d8a4899262c5 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 17 Jul 2005 22:52:59 +0000 Subject: move target/default/target_skeleton into package/base-files, put all the default files in ipkg packages, cleanup some junk in toolchain/, toolchain/ no longer changes build_mipsel/root git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1494 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../usr/share/udhcpc/default.script | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100755 openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script (limited to 'openwrt/target/default/target_skeleton/usr/share') diff --git a/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script b/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script deleted file mode 100755 index 6c64aa3d4..000000000 --- a/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -# udhcpc script edited by Tim Riker -# (slightly modified for openwrt) - -[ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1 - -RESOLV_CONF="/tmp/resolv.conf" - -case "$1" in - deconfig) - ifconfig $interface 0.0.0.0 - ;; - - renew|bound) - ifconfig $interface $ip \ - netmask ${subnet:-255.255.255.0} \ - broadcast ${broadcast:-+} - - if [ -n "$router" ] ; then - echo "deleting routers" - while route del default gw 0.0.0.0 dev $interface ; do - : - done - - for i in $router ; do - route add default gw $i dev $interface - 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 - ;; -esac -exit 0 -- cgit v1.2.3