/[packages]/cauldron/wicd/current/SOURCES/wicd.init
ViewVC logotype

Contents of /cauldron/wicd/current/SOURCES/wicd.init

Parent Directory Parent Directory | Revision Log Revision Log


Revision 89374 - (show annotations) (download)
Thu Apr 21 02:32:07 2011 UTC (12 years, 11 months ago) by ahmad
File size: 1733 byte(s)
imported package wicd
1 #! /bin/bash
2 #
3 # wicd Bring up/down networking
4 #
5 # chkconfig: - 10 90
6 # description: Wicd is a wireless and wired network manager for Linux.
7 # start at boot time.
8 # probe: false
9 #
10 ### BEGIN INIT INFO
11 # Provides: wicd
12 # Should-Start: harddrake irda resolvconf slmodemd
13 # Should-Stop: irda resolvconf slmodemd
14 # Default-Start: 2 3 4 5
15 # Short-Description: Bring up/down networking
16 # Description: Activates/Deactivates all network interfaces configured to
17 # start at boot time.
18 # Should-Start: iptables ip6tables
19 ### END INIT INFO
20
21 # Source function library.
22 . /etc/rc.d/init.d/functions
23
24 set +x
25
26 WICD_BIN=/usr/sbin/wicd
27 IFCONFIG_BIN=/sbin/ifconfig
28
29 case "$1" in
30 start)
31 echo -n "Starting wicd services: "
32 $IFCONFIG_BIN lo up
33 daemon $WICD_BIN
34 RETVAL=$?
35 echo
36 if [ $RETVAL -eq 0 ]; then
37 touch /var/lock/subsys/wicd
38 else
39 echo -n "Wicd already running"
40 echo
41 exit 1
42 fi
43 ;;
44 stop)
45 if [ -f /var/lock/subsys/wicd ]; then
46 echo -n "Shutting down wicd services: "
47 killproc -p /var/run/wicd/wicd.pid wicd -15
48 #killall wicd
49 RETVAL=$?
50 echo
51 if [ $RETVAL -eq 0 ]; then
52 rm -f /var/lock/subsys/wicd
53 rm -f /var/run/wicd/wicd.pid
54 else
55 echo -n "Wicd not running"
56 echo
57 exit 7
58 fi
59 fi
60 ;;
61 status)
62 if pidofproc wicd ; then
63 echo -n "wicd is running.\n"
64 else
65 status wicd
66 fi
67 ;;
68 restart | reload)
69 $0 stop
70 $0 start
71 ;;
72 *)
73 echo -n "Usage: wicd {start|stop|status|reload|restart}\n"
74 exit 1
75 ;;
76 esac
77

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30