Skip to content

Instantly share code, notes, and snippets.

@nabakdev
Created March 30, 2023 08:20
Show Gist options
  • Select an option

  • Save nabakdev/ac5b32659f9ef8be3b3bc00f18abef0c to your computer and use it in GitHub Desktop.

Select an option

Save nabakdev/ac5b32659f9ef8be3b3bc00f18abef0c to your computer and use it in GitHub Desktop.
Reboot openwrt based router with curl
#!/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