Skip to content

Instantly share code, notes, and snippets.

@meteozond
Last active August 16, 2024 02:56
Show Gist options
  • Save meteozond/129c9e6aab4d03d8176947681f02c18a to your computer and use it in GitHub Desktop.
Save meteozond/129c9e6aab4d03d8176947681f02c18a to your computer and use it in GitHub Desktop.
Simple OpenWrt startup Inadyn init.d script /etc/init.d/inadyn
#!/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