#!/bin/sh # see also m-p-d::profiles/live/image-scripts.d/init3-services ENABLE=" cups.service avahi-daemon.service NetworkManager.service NetworkManager-wait-online.service ModemManager.service nmb.service smb.service dnsmasq.service cpufreq-simple.service alteratord.socket bluetoothd.service crond.service lvm2-monitor.service network.service ntpd.service lightdm.service bluetooth.service " DISABLE=" anacron.service x11presetdrv.service bridge.service acpid.service ethtool.service iptables.service lm_sensors.service openvpn.service sshd.service consolesaver.service syslogd.service krb5kdc.service clamd.service haspd.service cups.socket " for i in $ENABLE; do /bin/systemctl --no-reload enable "$i" ||: done for i in $DISABLE; do /bin/systemctl --no-reload disable "$i" ||: done :