icwmp: run defaultreset command when rpc factory_reset_soft is called

This commit is contained in:
Sukru Senli 2017-11-24 09:52:55 +01:00
parent dbf00a8c81
commit d74b88913f

View file

@ -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