mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-04-03 09:39:31 +02:00
Merge branch 'dostartx' into 'master'
Add dostartx boot option Closes #222 See merge request systemrescue/systemrescue-sources!110
This commit is contained in:
commit
c33b6e51d2
|
|
@ -46,10 +46,17 @@ do
|
|||
|
||||
# Option to allow user to disable the firewall
|
||||
nofirewall)
|
||||
echo "Found option 'nofirewall' on the boot command line"
|
||||
echo "Found option '${curopt}' on the boot command line"
|
||||
# the firewall service(s) must be in the Before-section of sysrescue-initialize.service
|
||||
systemctl disable --now iptables.service ip6tables.service
|
||||
;;
|
||||
|
||||
# Auto-start the graphical environment (tty1 only)
|
||||
dostartx)
|
||||
echo "Found option '${curopt}' on the boot command line"
|
||||
echo '[[ ! $DISPLAY ]] && [[ ! $SSH_TTY ]] && [[ $XDG_VTNR == 1 ]] && startx' | \
|
||||
tee -a /root/.bash_profile > /root/.zlogin
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue