File indexing completed on 2024-04-21 16:11:37

0001 #!/bin/sh
0002 
0003 set -x
0004 
0005 #plymouthd --tty=/dev/tty2 --debug-log=/tmp/foo
0006 plymouthd --debug #--debug-file=/home/me/plylog
0007 
0008 plymouth show-splash
0009 
0010 #### |                 | ####
0011 #### | copy to lightdm | ####
0012 #### v                 v ####
0013 
0014 plymouth update --status="kitten.service"; sleep 1
0015 plymouth update --status="meows.service"; sleep 1
0016 
0017 plymouth update --status="updates.service"; sleep 1
0018 
0019 # This simulates what packagekit does for updates, more or less.
0020 plymouth change-mode --updates
0021 plymouth display-message --text="Installing updates; this could take a while..."
0022 sleep 1
0023 c=1
0024 while [ ! "$c" -gt "100" ]; do
0025     if [ "$c" -gt "75" ]; then
0026         plymouth display-message --text="Removing woopwoop"
0027     elif [ "$c" -gt "55" ]; then
0028         plymouth display-message --text="Installing protoware"
0029     elif [ "$c" -gt "25" ]; then
0030         plymouth display-message --text="Updating neon-settings"
0031     elif [ "$c" -gt "10" ]; then
0032         plymouth display-message --text="Installing Updates"
0033     fi
0034 
0035     plymouth system-update --progress="$c"
0036     sleep 0.005
0037     c=$(($c+1))
0038 done
0039 plymouth display-message --text="Rebooting after installing updates…"
0040 sleep 1
0041 #
0042 
0043 plymouth display-message --text="Checking disk drives for errors. This may take several minutes."
0044 plymouth display-message --text="keys:Press C to cancel all checks in progress"
0045 c=1
0046 while [ ! "$c" -gt "100" ]; do
0047     plymouth update --status="fsck:sda1:$c"
0048     sleep 0.005
0049     c=$(($c+1))
0050 done
0051 plymouth watch-keystroke --keys="cC " --command="echo yay"
0052 
0053 # plymouth display-message --text="Intermediate Message"; sleep 1
0054 # plymouth hide-message --text="Intermediate Message"; sleep 2
0055 
0056 plymouth display-message --text="keys:"
0057 promptString="Unlocking the disk /dev/sda0 (/media)
0058 Enter passphrase: "
0059 plymouth ask-for-password --prompt="${promptString}" --dont-pause-progress
0060 
0061 plymouth message --text="Press ENTER to leave"
0062 plymouth watch-keystroke > /dev/null
0063 
0064 #### ^                 ^ ####
0065 #### | copy to lightdm | ####
0066 #### |                 | ####
0067 
0068 plymouth quit