Created
March 30, 2023 08:20
-
-
Save nabakdev/ac5b32659f9ef8be3b3bc00f18abef0c to your computer and use it in GitHub Desktop.
Reboot openwrt based router with curl
This file contains hidden or 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/bash | |
| curl -X POST http://192.168.1.1/cgi-bin/luci/;stok=<SESSION_TOKEN>/admin/system/reboot \ | |
| -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \ | |
| --data 'reboot=1&sessionid=<SESSION_TOKEN>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment