mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-01 01:00:03 +01:00
4effc4c545
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
30 lines
409 B
Bash
30 lines
409 B
Bash
#!/bin/sh
|
|
# Start/stop/restart the Freenet6 Client
|
|
|
|
# Comment this out if you don't want the client to auto-accept the server cert
|
|
AUTOACCEPT="-y"
|
|
|
|
|
|
gogoc_start() {
|
|
/usr/bin/gogoc -b -f /etc/gogoc.conf $AUTOACCEPT
|
|
}
|
|
|
|
gogoc_stop() {
|
|
killall gogoc
|
|
}
|
|
|
|
case "$1" in
|
|
'start')
|
|
gogoc_start
|
|
;;
|
|
'stop')
|
|
gogoc_stop
|
|
;;
|
|
'restart')
|
|
gogoc_stop
|
|
gogoc_start
|
|
;;
|
|
*)
|
|
echo "usage $0 start|stop|restart"
|
|
esac
|
|
|