Skip to content

Instantly share code, notes, and snippets.

@codenuke
Created June 17, 2016 01:19
Show Gist options
  • Save codenuke/27fa78bb2cd6d0b5374cfa26b99b50ac to your computer and use it in GitHub Desktop.
Save codenuke/27fa78bb2cd6d0b5374cfa26b99b50ac to your computer and use it in GitHub Desktop.
#!/bin/sh /etc/rc.common
START=10
start()
{
uci set wireless.sta.disabled='0'
uci commit
/etc/init.d/network restart
sleep 30
uci set wireless.sta.disabled='1'
uci commit
}
@codenuke
Copy link
Author

  1. create script at /etc/init.d/staap
  2. chmod +x /etc/init.d/staap
  3. enable script on start => /etc/init.d/staap enable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment