Skip to content

Instantly share code, notes, and snippets.

@evianzhow
Last active December 22, 2015 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evianzhow/8e4d9a5b465a6bfed73b to your computer and use it in GitHub Desktop.
Save evianzhow/8e4d9a5b465a6bfed73b to your computer and use it in GitHub Desktop.
openwrt mentohust init script
#!/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