switch init script to bash