a few fixes, a few dns
[automated-distro-installer] / fai / config / scripts / GRUB_PC / 11-iank
index e27260e76065f0c77c02b71a8e8a8647bde33686..fc51d591cde799eaab50565a9c5ac44cc6f2e1d8 100755 (executable)
@@ -215,7 +215,7 @@ EOF
 fi
 
 # use networkmanager if this host has wireless.
-if type -p iw &>/dev/null && [[ $(iw dev) ]]; then
+if [[ $HOSTNAME == bo ]] || type -p iw &>/dev/null && [[ $(iw dev) ]]; then
   chroot $FAI_ROOT bash <<EOF
 apt-get -y install network-manager
 EOF
@@ -353,22 +353,8 @@ fi
 # appropriate things into a new service.
 rm -f /home/iank/.config/systemd/user/default.target.wants/ssh-agent.service
 
-mkdir -p /home/iank/.local/share/systemd/user
-cat >/home/iank/.local/share/systemd/user/sshaiank.service <<'EOF'
-[Unit]
-Description=OpenSSH User Agent
-Documentation=man:ssh-agent(1)
-[Service]
-ExecStart=/usr/lib/openssh/agent-launch start
-ExecStopPost=/usr/lib/openssh/agent-launch stop
-[Install]
-WantedBy=default.target
-EOF
-# enable it
-# systemctl --user is not available at fai time, so create the link ourselves
-dir=/home/iank/.config/systemd/user/default.target.wants
-mkdir -p $dir
-ln -sf /home/iank/.local/share/systemd/user/sshaiank.service $dir
+rm -f /home/iank/.local/share/systemd/user/sshaiank.service \
+  /home/iank/.config/systemd/user/default.target.wants/sshaiank.service
 
 #### end .ssh setup ###
 
@@ -379,7 +365,7 @@ f=/etc/ssh/sshd_config
 grep -xFq "$line" $f || tee -a $f <<<"$line"
 
 
-# default debian groups (jessie through buster) + adm, sudo, root, admin
+# default debian groups (jessie through buster) + adm, root, admin
 for g in cdrom floppy audio dip video plugdev netdev adm sudo admin; do
   if getent group $g >/dev/null; then
     usermod -aG $g iank