2015-01-27 23:27:51 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# tpgxyz@gmail.com
|
|
|
|
|
|
|
|
if grep -q '\binstall\b' /proc/cmdline; then
|
|
|
|
. /etc/locale.conf
|
|
|
|
|
|
|
|
# ensure plymouth really has stopped
|
|
|
|
if pgrep "plymouthd" > /dev/null 2>&1; then
|
2015-04-07 17:10:16 +04:00
|
|
|
/bin/plymouth quit --retain-splash
|
2015-01-27 23:27:51 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
/bin/systemctl stop crond.service &
|
|
|
|
|
|
|
|
xset -dpms
|
|
|
|
xset s off
|
|
|
|
|
|
|
|
if [ -e /usr/bin/startx ] && [ -x /usr/bin/calamares ]; then
|
|
|
|
/usr/bin/startx /usr/bin/calamares $* -- -dpi 96 vt1 -background none
|
|
|
|
else
|
|
|
|
echo "calamares-install: critical programs are missing, check your system!"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# check if we are booted from cd drom to eject it
|
|
|
|
blkid /dev/sr0 >/dev/null 2>&1
|
|
|
|
if [[ $? -eq 0 ]]; then
|
|
|
|
eject
|
|
|
|
sleep 10
|
|
|
|
fi
|
|
|
|
|
|
|
|
sync
|
|
|
|
reboot
|
|
|
|
|
|
|
|
fi
|