calamares/calamares-install-start

34 lines
700 B
Text
Raw Normal View History

#!/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
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