Last active
August 16, 2024 02:56
-
-
Save meteozond/129c9e6aab4d03d8176947681f02c18a to your computer and use it in GitHub Desktop.
Simple OpenWrt startup Inadyn init.d script /etc/init.d/inadyn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
# chmod +x /etc/init.d/inadyn | |
# /etc/init.d/inadyn enable | |
# /etc/init.d/inadyn start | |
START=50 | |
STOP=50 | |
USE_PROCD=1 | |
PROG=/usr/sbin/inadyn | |
start_service() { | |
procd_open_instance | |
procd_set_param command $PROG --foreground | |
procd_set_param respawn | |
procd_close_instance | |
} | |
stop_service() { | |
procd_killall inadyn | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment