youtubeUnblock/owrt/youtubeUnblock.owrt
Vadim Vetrov e8519b4973
Fix error on enable in init script openwrt
Check #56 and #37 for more details. Real commit made to openwrt branch. Pushing this to restart actions
2024-08-13 19:33:52 +03:00

23 lines
429 B
Bash
Executable File

#!/bin/sh /etc/rc.common
USE_PROCD=1
START=50
STOP=50
# Openwrt procd script: https://openwrt.org/docs/guide-developer/procd-init-script-example
# The program should be put into /usr/bin/
# This file should be put into /etc/init.d/
start_service() {
procd_open_instance
procd_set_param command /usr/bin/youtubeUnblock
procd_set_param nice -20
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}