From 890d5235431f1411dbef3ab473678bb5b1d2c50d Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 3 Sep 2018 02:08:19 +0200 Subject: [PATCH] fix --- arch-graphical-install-auto | 71 +++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 31 deletions(-) diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 7715a1d..c7e7f88 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -166,19 +166,19 @@ function ldconfigcache() { function addusers() { if ! cat /etc/group | grep users; then - groupadd users + groupadd users fi if ! cat /etc/group | grep wheel; then - groupadd wheel + groupadd wheel fi if ! cat /etc/group | grep audio; then - groupadd audio + groupadd audio fi if ! cat /etc/group | grep video; then - groupadd video + groupadd video fi if ! cat /etc/group | grep optical; then - groupadd optical + groupadd optical fi useradd -m -g users -G wheel,audio,video,sys,optical -s /bin/bash $username passwd ${username} < /etc/systemd/system/getty\@tty1.service.d/autologin.conf echo "ExecStart=" >> /etc/systemd/system/getty\@tty1.service.d/autologin.conf echo "ExecStart=-/usr/bin/agetty --autologin root -s %I 115200,38400,9600 vt102" >> /etc/systemd/system/getty\@tty1.service.d/autologin.conf - systemctl enable getty@tty1 + if ! [ "${version}" == "libre-xfce4-openrc" ]; then + systemctl enable getty@tty1 + fi else mkdir -p /etc/systemd/system/getty\@tty1.service.d echo "[Service]" > /etc/systemd/system/getty\@tty1.service.d/autologin.conf echo "ExecStart=" >> /etc/systemd/system/getty\@tty1.service.d/autologin.conf echo "ExecStart=-/usr/bin/agetty --autologin $username -s %I 115200,38400,9600 vt102" >> /etc/systemd/system/getty\@tty1.service.d/autologin.conf - systemctl enable getty@tty1 + if ! [ "${version}" == "libre-xfce4-openrc" ]; then + systemctl enable getty@tty1 + fi fi elif [ "$start" == "xdm" ] @@ -468,26 +474,28 @@ else echo "Kein Start gewählt!!!" fi -systemctl enable acpid -systemctl enable ntpd -systemctl enable avahi-daemon -systemctl enable org.cups.cupsd.service -systemctl enable sshd -systemctl enable cronie -systemctl enable systemd-timesyncd.service -echo "Bitte OpenVPN config in die /etc/openvpn/client/client.conf kopieren!!!" -if [ -f /lib/systemd/system/openvpn-client@client.service ]; then - echo "link vorhanden!" -else - ln /lib/systemd/system/openvpn-client@.service /lib/systemd/system/openvpn-client@client.service +if ! [ "${version}" == "libre-xfce4-openrc" ]; then + systemctl enable acpid + systemctl enable ntpd + systemctl enable avahi-daemon + systemctl enable org.cups.cupsd.service + systemctl enable sshd + systemctl enable cronie + systemctl enable systemd-timesyncd.service + echo "Bitte OpenVPN config in die /etc/openvpn/client/client.conf kopieren!!!" + if [ -f /lib/systemd/system/openvpn-client@client.service ]; then + echo "link vorhanden!" + else + ln /lib/systemd/system/openvpn-client@.service /lib/systemd/system/openvpn-client@client.service + fi + #Bei ausdokumentierung wird eine/die VPN automatisch aus der /etc/openvpn/client/client.conf gestartet!!! + #systemctl enable openvpn-client@client.service + systemctl enable fail2ban + systemctl disable dhcpcd + systemctl enable NetworkManager.service + systemctl enable bluetooth.service + systemctl enable httpd fi -#Bei ausdokumentierung wird eine/die VPN automatisch aus der /etc/openvpn/client/client.conf gestartet!!! -#systemctl enable openvpn-client@client.service -systemctl enable fail2ban -systemctl disable dhcpcd -systemctl enable NetworkManager.service -systemctl enable bluetooth.service -systemctl enable httpd # set systemconfiguration echo "systemconfiguration" @@ -628,8 +636,9 @@ if [ -f /etc/systemd/system/x11vnc.service ]; then fi cp /opt/${repo}/x11vnc.service /etc/systemd/system/x11vnc.service chmod 644 /etc/systemd/system/x11vnc.service -systemctl enable x11vnc.service - +if ! [ "${version}" == "libre-xfce4-openrc" ]; then + systemctl enable x11vnc.service +fi # .Conky compress restore /opt/${repo}/.Conky.tar.pxz /opt/ chmod 755 -Rv /opt/.Conky/