mirror of
https://github.com/vikt0rm/dbus-goecharger.git
synced 2025-08-01 11:14:26 +02:00
remove entry from rc.local
This commit is contained in:
10
uninstall.sh
10
uninstall.sh
@@ -1,8 +1,14 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
SERVICE_NAME=$(basename $SCRIPT_DIR)
|
||||
|
||||
rm /service/$SERVICE_NAME
|
||||
kill $(pgrep -f 'supervise dbus-goecharger')
|
||||
kill $(pgrep -f 'supervise $SERVICE_NAME')
|
||||
chmod a-x $SCRIPT_DIR/service/run
|
||||
./restart.sh
|
||||
|
||||
# remove entry from rc.local
|
||||
filename=/data/rc.local
|
||||
grep -v $SERVICE_NAME $filename > $filename.temp
|
||||
mv $filename.temp $filename
|
||||
chmod +x $filename
|
||||
|
Reference in New Issue
Block a user