mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
31 lines
409 B
Text
31 lines
409 B
Text
|
#!/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
|
||
|
|