SHARE
TWEET

seamless_video.sh

a guest Feb 12th, 2013 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. # /etc/init.d/seamless_video.sh
  3. #
  4. ### BEGIN INIT INFO
  5. # Provides:  seamless_video.sh
  6. # Required-Start:
  7. # Required-Stop:
  8. # Default-Start:  2 3 4 5
  9. # Default-Stop:  0 1 6
  10. # Short-Description: video looper
  11. # Description:
  12. #
  13. ### END INIT INFO
  14.  
  15. export USER='onq'
  16.  
  17. case "$1" in
  18.  
  19.   start)
  20.    echo "\nstart"
  21.    cd /home/onq
  22.    /usr/bin/chromium-browser --kiosk &
  23.    ;;
  24.  
  25.   stop)
  26.    echo "Stopping Video"
  27.    VIDEO_PID=`ps aux | grep chromium-browser | head -1 | awk '{print $2}'`
  28.    kill -9 $VIDEO_PID
  29.    echo "done\n"
  30.    ;;
  31.  
  32.   *)
  33.    exit 1
  34.    ;;
  35.  
  36. esac
  37. exit 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top