diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-11-20 09:50:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-21 16:46:15 +0000 |
commit | e1abae623a6b3afcb29f325220cc79453efb4e77 (patch) | |
tree | 9dcd123059066af6095730303d8af662efc11cbc /meta/recipes-core/netbase/netbase-4.47/init | |
parent | 402c23e9823d186112e8509d3eecb0d64bfa7ec7 (diff) | |
download | openembedded-core-e1abae623a6b3afcb29f325220cc79453efb4e77.tar.gz |
netbase: Update recipe 4.46 -> 4.47
moreover 4.46 tar is not available on debian pools
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/netbase/netbase-4.47/init')
-rw-r--r-- | meta/recipes-core/netbase/netbase-4.47/init | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-core/netbase/netbase-4.47/init b/meta/recipes-core/netbase/netbase-4.47/init new file mode 100644 index 0000000000..8a67e1cef2 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.47/init @@ -0,0 +1,52 @@ +#!/bin/sh +# +### BEGIN INIT INFO +# Provides: networking +# Required-Start: $local_fs mountvirtfs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 6 +# Short-Description: Raise network interfaces and configure them +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +if ! [ -x /sbin/ifup ]; then + exit 0 +fi + +case "$1" in + start) + echo -n "Configuring network interfaces... " + ifup -a + echo "done." + ;; + stop) + if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | + grep -q "^/ nfs$"; then + echo "NOT deconfiguring network interfaces: / is an NFS mount" + elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | + grep -q "^/ smbfs$"; then + echo "NOT deconfiguring network interfaces: / is an SMB mount" + elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts | + grep -qE '^(nfs|smbfs|ncp|coda)$'; then + echo "NOT deconfiguring network interfaces: network shares still mounted." + else + echo -n "Deconfiguring network interfaces... " + ifdown -a + echo "done." + fi + ;; + force-reload|restart) + echo -n "Reconfiguring network interfaces... " + ifdown -a + ifup -a + echo "done." + ;; + *) + echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 |