Changing shellscript to wake script