diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-04-09 17:42:16 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-04-09 17:42:16 +0200 |
commit | c81c181e7afe707fef8a772334972cfe4d01f56c (patch) | |
tree | 81e78942d1b3211431ad048dcb88707bd2de0199 /package/busybox/files/network | |
parent | 375255ca7ce830c93a585c46df19f796900c11fa (diff) | |
parent | 2308963c1a13cc665c5f14872a648bf382d73a04 (diff) |
Merge branch 'master' of git+ssh://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 $? |