TEXT   45
progressbar
Guest on 4th February 2023 01:31:42 PM


  1. progressbar()
  2.      {
  3.  
  4.           if [ $# != 1 ]
  5.           then
  6.                echo "Usage: progressbar {progress}"
  7.                exit 1
  8.           fi
  9.                
  10.           echo "show $(( 65534 * $1 / 100 ))" > /proc/splash
  11.  
  12.      }
  13.  
  14.      animate()
  15.      {
  16.  
  17.           if [ $# = 0 ]
  18.           then
  19.                echo "Usage: animate {hook}"
  20.                exit 1
  21.           fi
  22.  
  23.           splash "$*"
  24.  
  25.      }

Raw Paste

Login or Register to edit or fork this paste. It's free.