X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/f80d4fdc68858ba956a39e19ad6efa868beb827e..00394c57717f28bb3b9860020729cd73036a8cf8:/package/base-files/default/etc/init.d/S40network?ds=sidebyside diff --git a/package/base-files/default/etc/init.d/S40network b/package/base-files/default/etc/init.d/S40network index a5afe5266..ec290335d 100755 --- a/package/base-files/default/etc/init.d/S40network +++ b/package/base-files/default/etc/init.d/S40network @@ -1,15 +1,9 @@ #!/bin/sh -[ -e /etc/config/network] && . /etc/config/network -case "$1" in - start|restart) - ifup lan - ifup wan - ifup wifi - wifi up +# Copyright (C) 2006 OpenWrt.org - for route in $(nvram get static_route); do { - eval "set $(echo $route | sed 's/:/ /g')" - $DEBUG route add -net $1 netmask $2 gw $3 metric $4 dev $5 - } done - ;; -esac +setup_switch() { return 0; } + +. /etc/functions.sh +include network +setup_switch +/sbin/wifi