mirror of
https://github.com/gryf/wicd.git
synced 2026-01-31 04:55:52 +01:00
Experimental: Apply changes involving setup.py
* Added setup.py from trunk * Updated various information files (AUTHORS, README, etc) * Update the Wicd icon * Move stuff around to match trunk's layout
This commit is contained in:
43
init/redhat/wicd
Executable file
43
init/redhat/wicd
Executable file
@@ -0,0 +1,43 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# /etc/init.d/wicd
|
||||
#
|
||||
# chkconfig: - 98 02
|
||||
# description: Wicd is a wireless and wired network manager for Linux.
|
||||
|
||||
# Source function library.
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
# This script was borrowed from the Wicd wiki page on building for Fedora
|
||||
# http://wicd.net/wiki/doku.php?id=fedora
|
||||
|
||||
WICD_BIN=/usr/sbin/wicd
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting wicd services: "
|
||||
daemon $WICD_BIN 2> /dev/null
|
||||
touch /var/lock/subsys/wicd
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down wicd services: "
|
||||
killall wicd 2> /dev/null
|
||||
rm -f /var/lock/subsys/wicd
|
||||
;;
|
||||
status)
|
||||
if pidofproc wicd > /dev/null ; then
|
||||
echo "wicd is running."
|
||||
else
|
||||
status wicd
|
||||
fi
|
||||
;;
|
||||
restart | reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: wicd {start|stop|status|reload|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user