Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # create a service that will run our firstboot script
- cat > /etc/init.d/firstboot <<EOF
- #! bin/sh
- ### BEGIN INIT INFO
- # Provides: firstboot
- # Required-Start: $networking
- # Required-Stop: $networking
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: A script that runs once
- # Description: A script that runs once
- ### END INIT INFO
- cd /home/admin/post_install ; /usr/bin/nohup sh -x /home/admin/post_install/post_install.sh &
- EOF
- # install the firstboot service
- chmod +x /etc/init.d/firstboot
- update-rc.d firstboot defaults
- echo "finished postinst"
Advertisement
Add Comment
Please, Sign In to add comment