;;&
ubuntu|debian)
if has_x; then
- pi xmacro gtk-redshift xinput
+ if isdebian-stable; then
+ pi xmacro
+ else
+ pi xmacro/unstable # has no unstable deps
+ fi
+ pi gtk-redshift xinput
fi
;;&
fedora)
# this says disabling the service, it will still get restarted
# but this script doesn't do anything on restart, so it should be fine
s dd of=/var/run/motd.dynamic if=/dev/null
- s update-rc.d motd disable
+ # stretch doesn't have initscripts pkg installed by default
+ if [[ $(debian-codename) == jessie ]]; then
+ s update-rc.d motd disable
+ fi
;;
ubuntu)
# this isn't a complete solution. It still shows me when updates are available,
[Install]
WantedBy=sockets.target
EOF
+ # had this fail with 'Failed to connect to bus: No such file or directory'
+ # then when I tried it manually, it worked fine...
systemctl --user daemon-reload
;;&
*)
########### misc stuff
-if ! sudo test -e /etc/openvpn/client.key; then
- /a/bin/vpn-setup/vpn-mk-client-cert
+if [[ $HOSTNAME == frodo ]] && ! sudo test -e /etc/openvpn/client.key; then
+ /a/bin/vpn-setup/vpn-mk-client-cert dopub
fi