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 :
- Buat file /etc/rc.progress
- #touch /etc/rc.progress
- 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 }
- Tambahkan permission untuk bisa dieksekusi
- #chmod +x /etc/rc.progress
- Coba jalankan script tersebut, bila terdapat error coba ubah symlink sh yang ada di /bin/sh ke symlinknya bash dan eksekusi lagi.
- 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
- # Load the splash function
- Tambahkan script di akhir file /etc/rc.localseperti dibawah ini
- # Remove the temporary progress bar file
rm -f /tmp/progressbar
- # Remove the temporary progress bar file
- Oke sudah selesai sekarang coba reboot komputernya dan lihat hasilnya. Selamt mencoba

Leave a Reply