Skip to content

Instantly share code, notes, and snippets.

@zhihuiyuze
Created June 26, 2021 16:48
Show Gist options
  • Save zhihuiyuze/a82683a1bdf1b23d52ee709137e4abb6 to your computer and use it in GitHub Desktop.
Save zhihuiyuze/a82683a1bdf1b23d52ee709137e4abb6 to your computer and use it in GitHub Desktop.
openwrt udp2raw service
#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2012 OpenWrt.org
USE_PROCD=1
START=95
STOP=01
start_service()
{
procd_open_instance
procd_set_param command /usr/bin/udp2raw --conf-file /etc/udp2raw/.conf
}
stop_service()
{
procd_close_instance
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment