1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/wicd/wicd.init
3 # Copyright (C) 2009 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
14 block_begin(start, `Starting wicd')
15 check(`if [ -s /var/run/wicd/wicd.pid ] ; then
16 kill $(cat /var/run/wicd/wicd.pid)
18 check(`D_prefix/sbin/wicd')
22 block_begin(stop, `Stopping wicd')
23 check(`if [ -s /var/run/wicd/wicd.pid ] ; then
24 kill $(cat /var/run/wicd/wicd.pid)
26 echo "wicd is not running or /var/run/wicd/wicd.pid disappeared."
31 block_begin(restart, `Restarting wicd')
32 check(`if [ -s /var/run/wicd/wicd.pid ] ; then
33 kill -HUP $(cat /var/run/wicd/wicd.pid)
35 echo "wicd is not running or /var/run/wicd/wicd.pid disappeared."