mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
icwmp: run defaultreset command when rpc factory_reset_soft is called
This commit is contained in:
parent
dbf00a8c81
commit
d74b88913f
1 changed files with 1 additions and 3 deletions
|
|
@ -363,9 +363,7 @@ handle_action() {
|
|||
fi
|
||||
|
||||
if [ "$action" = "factory_reset_soft" ]; then
|
||||
ubus call juci.system defaultreset '{"soft":"true","wifi":"true","fw_redirect":"true","fw_parental":"true","passwd_user":"true","ice":"true"}'
|
||||
sync
|
||||
reboot
|
||||
/sbin/defaultreset -s wifi fw_redirect fw_parental passwd_user ice
|
||||
fi
|
||||
|
||||
if [ "$action" = "reboot" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue