OSDN Git Service

3d7ec1d17377a6b281d99fe80657c162dae0dcd6
[alterlinux/alterlinux-pkgbuilds.git] / alter-stable / any / plymouth / plymouth.initcpio_hook
1 run_earlyhook(){
2         # first trigger graphics subsystem
3         udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
4         # first trigger graphics and tty subsystem
5         udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1
6  
7         udevadm settle --timeout=30 2>&1
8        
9         /usr/bin/mknod /dev/fb c 29 &>/dev/null
10         /usr/bin/mkdir -p /dev/pts
11         /usr/bin/mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
12         /usr/bin/plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session
13 }
14  
15 run_hook() {
16         /usr/bin/plymouth --show-splash
17 }
18  
19 run_latehook(){
20         /usr/bin/plymouth update-root-fs --new-root-dir=/new_root      
21 }
22
23 # vim: set ft=sh: