lede/package/lean/pcat-manager/files/pcat-manager.init
AmadeusGhost 9fe455c514 rockchip: add support for Ariaboard Photonicat
This commit add basic support for Photonicat Board.

Flash into lede:
  Run first: dd if=openwrt-xxx.img of=/dev/mmcblk0
  Then brush the img file to sdcard and insert it,
  the system will boot from above.

Note:
  Since rockchip does not release any code to power up their
  device, disabled emmc for now until we can remove rkbin.
2023-01-24 21:39:13 +08:00

25 lines
299 B
Bash

#!/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
}