Last active
December 22, 2015 15:52
-
-
Save evianzhow/8e4d9a5b465a6bfed73b to your computer and use it in GitHub Desktop.
openwrt mentohust init script
This file contains 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 | |
# Copyright (C) 2013 dazzyd.org | |
START=96 | |
mentohust=/usr/local/sbin/mentohust | |
start() { | |
$mentohust -neth1 -u{USERNAME} -p{PASSWORD} \ | |
-v4.44 -a1 -d2 -c/usr/local/lib/mentohust/dhcp-{DHCPTYPE}.sh \ | |
-l0 -y0 -b3 | |
} | |
stop() { | |
killall mentohust | |
} | |
restart() { | |
stop | |
start | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment