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:48:52 +0000 |
commit | 4c289c205174e2b7f9b5abb68a176708e7a8e83b (patch) | |
tree | 0e65d3da2b4f77c8cd78c96376b726228e0bd082 /meta/recipes-core/netbase/netbase-4.47/init | |
parent | a75f6f765b97fd81e65cef635ad21cf59419cf0e (diff) | |
download | poky-4c289c205174e2b7f9b5abb68a176708e7a8e83b.tar.gz |
netbase: Update recipe 4.46 -> 4.47
moreover 4.46 tar is not available on debian pools
(From OE-Core rev: e1abae623a6b3afcb29f325220cc79453efb4e77)
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 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | ### BEGIN INIT INFO | ||
4 | # Provides: networking | ||
5 | # Required-Start: $local_fs mountvirtfs | ||
6 | # Required-Stop: $local_fs | ||
7 | # Default-Start: S | ||
8 | # Default-Stop: 0 6 | ||
9 | # Short-Description: Raise network interfaces and configure them | ||
10 | ### END INIT INFO | ||
11 | |||
12 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||
13 | |||
14 | if ! [ -x /sbin/ifup ]; then | ||
15 | exit 0 | ||
16 | fi | ||
17 | |||
18 | case "$1" in | ||
19 | start) | ||
20 | echo -n "Configuring network interfaces... " | ||
21 | ifup -a | ||
22 | echo "done." | ||
23 | ;; | ||
24 | stop) | ||
25 | if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | | ||
26 | grep -q "^/ nfs$"; then | ||
27 | echo "NOT deconfiguring network interfaces: / is an NFS mount" | ||
28 | elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | | ||
29 | grep -q "^/ smbfs$"; then | ||
30 | echo "NOT deconfiguring network interfaces: / is an SMB mount" | ||
31 | elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts | | ||
32 | grep -qE '^(nfs|smbfs|ncp|coda)$'; then | ||
33 | echo "NOT deconfiguring network interfaces: network shares still mounted." | ||
34 | else | ||
35 | echo -n "Deconfiguring network interfaces... " | ||
36 | ifdown -a | ||
37 | echo "done." | ||
38 | fi | ||
39 | ;; | ||
40 | force-reload|restart) | ||
41 | echo -n "Reconfiguring network interfaces... " | ||
42 | ifdown -a | ||
43 | ifup -a | ||
44 | echo "done." | ||
45 | ;; | ||
46 | *) | ||
47 | echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}" | ||
48 | exit 1 | ||
49 | ;; | ||
50 | esac | ||
51 | |||
52 | exit 0 | ||