X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FGRUB_PC%2F11-iank;h=fc51d591cde799eaab50565a9c5ac44cc6f2e1d8;hb=c59144a600fd661d9512d8a5005aa0f5bc29bf0d;hp=93df65558234e1a2537ec50ea83009817228f5a2;hpb=683400c6a28e49f3db1fc1bd051b7fc3efc63336;p=automated-distro-installer diff --git a/fai/config/scripts/GRUB_PC/11-iank b/fai/config/scripts/GRUB_PC/11-iank index 93df655..fc51d59 100755 --- a/fai/config/scripts/GRUB_PC/11-iank +++ b/fai/config/scripts/GRUB_PC/11-iank @@ -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 </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 ###