Restore bg shell script