diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-04-08 14:09:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-04-08 14:09:45 +0200 |
commit | 1e60f16ff4121d20025f8a00244ae4b5856f5581 (patch) | |
tree | d86f77fa497f7f9d935b53a5bcc3eb2c01ea74fd /package/busybox/files/network | |
parent | 854670adfd162d4dff21085804a03c6c903c7f60 (diff) | |
parent | eecf91bc2127f5d0fcd6e0935e0a07be84b692ff (diff) |
Merge branch 'master' of git+ssh://www.openadk.org/git/openadk
Diffstat (limited to 'package/busybox/files/network')
-rw-r--r-- | package/busybox/files/network | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/busybox/files/network b/package/busybox/files/network new file mode 100644 index 000000000..4989fcbcb --- /dev/null +++ b/package/busybox/files/network @@ -0,0 +1,27 @@ +#!/bin/sh +#PKG busybox +#INIT 40 +. /etc/rc.conf +case $1 in +autostart) + test x"${network:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + [ -f /etc/network/interfaces ] || exit 1 + ifup -a + ;; +autostop|stop) + [ -f /etc/network/interfaces ] || exit 1 + ifdown -a + ;; +restart) + sh $0 stop + exec sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? |