Create pcat-manager.init

This commit is contained in:
OPPEN321 2025-02-16 10:39:48 +08:00 committed by GitHub
parent d98436b38b
commit 0d36503cc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,24 @@
#!/bin/sh /etc/rc.common
START=45
STOP=89
start() {
service_start /usr/bin/pcat-manager -D
}
stop() {
service_stop /usr/bin/pcat-manager
}
restart() {
killall -USR1 pcat-manager
stop
start
}
shutdown() {
touch /tmp/pcat-manager-shutdown.tmp
stop
rfkill block wwan 2>/dev/null || true
}