diff options
author | Mike Baker <mbm@openwrt.org> | 2005-05-13 00:40:07 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2005-05-13 00:40:07 +0000 |
commit | c51cbc4d861f7667407e3870b3d25c47328837db (patch) | |
tree | f5ac0d1104c532dc01ec04853cfdd9748ae3b85b /openwrt/target/default/target_skeleton | |
parent | 32a0072dd36257952719f4ece1a69a1f027932f1 (diff) | |
download | mtk-20170518-c51cbc4d861f7667407e3870b3d25c47328837db.zip mtk-20170518-c51cbc4d861f7667407e3870b3d25c47328837db.tar.gz mtk-20170518-c51cbc4d861f7667407e3870b3d25c47328837db.tar.bz2 |
various cosmetic fixes
SVN-Revision: 864
Diffstat (limited to 'openwrt/target/default/target_skeleton')
4 files changed, 5 insertions, 13 deletions
diff --git a/openwrt/target/default/target_skeleton/bin/firstboot b/openwrt/target/default/target_skeleton/bin/firstboot index 8bb0b3e..2e7481d 100755 --- a/openwrt/target/default/target_skeleton/bin/firstboot +++ b/openwrt/target/default/target_skeleton/bin/firstboot @@ -45,12 +45,6 @@ do { } done echo "done" -echo -n "fixing ipkg symlinks... " -for file in $( find /usr/lib/ipkg/info/*list -type l;) -do { - rm $file; cp -f /rom/$file $file -} done - touch /tmp/resolv.conf ln -s /tmp/resolv.conf /etc/resolv.conf diff --git a/openwrt/target/default/target_skeleton/etc/dnsmasq.conf b/openwrt/target/default/target_skeleton/etc/dnsmasq.conf index 6155071..293edc6 100644 --- a/openwrt/target/default/target_skeleton/etc/dnsmasq.conf +++ b/openwrt/target/default/target_skeleton/etc/dnsmasq.conf @@ -11,7 +11,7 @@ domain=lan except-interface=vlan1 # enable dhcp (start,end,netmask,leasetime) -#dhcp-authoritative +dhcp-authoritative dhcp-range=192.168.1.100,192.168.1.250,255.255.255.0,12h dhcp-leasefile=/tmp/dhcp.leases diff --git a/openwrt/target/default/target_skeleton/etc/functions.sh b/openwrt/target/default/target_skeleton/etc/functions.sh index 75500a2..48f1191 100755 --- a/openwrt/target/default/target_skeleton/etc/functions.sh +++ b/openwrt/target/default/target_skeleton/etc/functions.sh @@ -29,5 +29,5 @@ if_valid () { $DEBUG vconfig add $vif $i 2>&- ) } || - { echo -e "# $1 ignored: can't find/create"; false; } + { debug "# missing interface '$if' ignored"; false; } } diff --git a/openwrt/target/default/target_skeleton/sbin/ifup b/openwrt/target/default/target_skeleton/sbin/ifup index 4236de0..f3230ba 100755 --- a/openwrt/target/default/target_skeleton/sbin/ifup +++ b/openwrt/target/default/target_skeleton/sbin/ifup @@ -52,12 +52,10 @@ fi ${DEBUG:-eval} "udhcpc -i $if ${ip:+-r $ip} -b -p $pidfile &" ;; - pppoe) - # handled by /etc/init.d/S50pppoe - ;; - none) + none|"") + # pppoe is handled by /etc/init.d/S50pppoe ;; *) - echo "### WARNING $if: $if_proto is not supported" + echo "### ifup $type: ignored ${type}_proto=\"$if_proto\" (not supported)" ;; esac |