[Settings] Clear restart/reboot flags in scripts when action is taken.
Merge branch 'master' into stage-merge