scripts: sync with master

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
reset with mainline

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>