Advertisement
Guest User

plymouth-hook

a guest
Oct 31st, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. cat /usr/lib/initcpio/hooks/plymouth
  2. run_earlyhook(){
  3.         # first trigger graphics subsystem
  4.         udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
  5.         # first trigger graphics and tty subsystem
  6.         udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1
  7.  
  8.         udevadm settle --timeout=30 2>&1
  9.    
  10. /usr/bin/mknod /dev/fb c 29 &>/dev/null
  11.     /usr/bin/mkdir -p /dev/pts
  12.     /usr/bin/mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
  13.     /usr/bin/plymouthd --mode=boot --pid-file=/var/run/plymouth/pid --attach-to-session
  14. }
  15.  
  16. run_hook() {
  17.     /usr/bin/plymouth --show-splash
  18. }
  19.  
  20. run_latehook(){
  21.     /usr/bin/plymouth update-root-fs --new-root-dir=/new_root  
  22. }
  23.  
  24. # vim: set ft=sh:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement