Mengaktifkan Progress bar pada Bootsplash

Tutotial ini adalah Lanjutan dari tutorial sebelumnya yang berkaitan dengan bootsplash atau fbsplash. Pada tutorial sebelumnya waktu booting maupun shutdown progressbar tidak bisa bergerak alias tidak aktif. Dengan sedikit script di bawah ini akan mengaktifkan progress bar tersebut. Langkah2nya sebagai berikut :

  1. Buat file /etc/rc.progress
    • #touch /etc/rc.progress
  2.  Isikan script di bawah ini dengan menggunakan editor, misalnya vim
    •  #vim /etc/rc.progress
    • #!/bin/sh
      #
      # rc.progress   This file has a common subroutine used to update a
      #               bootsplash progress bar
      #
      
      # Count the number of times the progress bar is likely to be increased
      num=$((`cat /etc/rc.* | grep -c "^progressup"`))
      
      function progressup(){
       progress=$((`cat /tmp/progressbar`));
       progress=$(($progress+1));
       echo $progress > /tmp/progressbar
       echo "show $(( 65534 * $progress / $num ))" > /proc/splash
      }
  3. Tambahkan permission untuk bisa dieksekusi
    • #chmod +x /etc/rc.progress
  4. Coba jalankan script tersebut, bila terdapat error coba ubah symlink sh yang ada di /bin/sh ke symlinknya bash dan eksekusi lagi.
  5. Tambahkan beberapa baris script di bawah ini pada bagian atas dari file file di directory /etc/rc2.d/ atau di directory rc*.d yang lain (pokoknya sesuai dengan default init nya)
    • # Load the splash function
      . /etc/rc.d/rc.progress
      progressup
  6. Tambahkan script di akhir file /etc/rc.localseperti dibawah ini
    • # Remove the temporary progress bar file
      rm -f /tmp/progressbar
  7. Oke sudah selesai sekarang coba reboot komputernya dan lihat hasilnya. Selamt mencoba :)

~ by txcom2003 on February 3, 2008.

Leave a Reply