Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # /etc/init.d/seamless_video.sh
- #
- ### BEGIN INIT INFO
- # Provides: seamless_video.sh
- # Required-Start:
- # Required-Stop:
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: video looper
- # Description:
- #
- ### END INIT INFO
- export USER='onq'
- case "$1" in
- start)
- echo "\nstart"
- cd /home/onq
- /usr/bin/chromium-browser --kiosk &
- ;;
- stop)
- echo "Stopping Video"
- VIDEO_PID=`ps aux | grep chromium-browser | head -1 | awk '{print $2}'`
- kill -9 $VIDEO_PID
- echo "done\n"
- ;;
- *)
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement