diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-22 23:25:34 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-22 23:25:39 +0300 |
commit | 91b6b387e19ad2b2f686e8a27bfc0a027e9eb4d9 (patch) | |
tree | 2be275e79d58e8f8f69166086c11ca3cbe1d9ed3 /e3372-dhcp-setting.sh | |
parent | c8fb7cd3987d3128bcee5962a5af4cd282add24e (diff) |
eliminate a lot of copypasta by using functions
Diffstat (limited to 'e3372-dhcp-setting.sh')
-rwxr-xr-x | e3372-dhcp-setting.sh | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/e3372-dhcp-setting.sh b/e3372-dhcp-setting.sh index f76e6ae..c3af87b 100755 --- a/e3372-dhcp-setting.sh +++ b/e3372-dhcp-setting.sh @@ -4,10 +4,4 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" . "$DIR/include.sh" get_token - -curl -s -X GET "http://$MODEM_IP/api/dhcp/settings" \ - -H "Cookie: $COOKIE" \ - -H "__RequestVerificationToken: $TOKEN" \ - -H "Content-Type: text/xml" >modem_status.xml - -cat modem_status.xml +get_xml "dhcp/settings" |