mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-06-08 11:04:51 +08:00
67 lines
2.3 KiB
Bash
Executable File
67 lines
2.3 KiB
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Enable our services
|
|
systemctl enable comma-init.service
|
|
systemctl enable comma.service
|
|
systemctl enable lte.service
|
|
systemctl enable magic.service
|
|
systemctl enable varwatch.service
|
|
systemctl enable power_monitor.service
|
|
systemctl enable power_drop_monitor.service
|
|
systemctl enable brightnessd.service
|
|
systemctl enable ssh-param-watcher.path
|
|
systemctl enable ssh-param-watcher.service
|
|
systemctl enable adb-param-watcher.path
|
|
systemctl enable adb-param-watcher.service
|
|
systemctl enable logrotate-hourly.timer
|
|
systemctl enable avahi-daemon
|
|
systemctl enable avahi-ssh-publish.service
|
|
systemctl enable tftp_server.service
|
|
|
|
# Disable SSH by default
|
|
systemctl disable ssh
|
|
|
|
# Disable all useless systemctl services
|
|
systemctl disable hostapd.service
|
|
systemctl disable apt-daily-upgrade.service
|
|
systemctl disable apt-daily.service
|
|
systemctl disable apt-daily-upgrade.timer
|
|
systemctl disable apt-daily.timer
|
|
systemctl disable serial-getty@ttyS0.service
|
|
systemctl disable remote-fs.target
|
|
systemctl disable remote-fs-pre.target
|
|
systemctl disable e2scrub_all.timer
|
|
systemctl disable fstrim.timer
|
|
systemctl disable motd-news.service
|
|
systemctl disable motd-news.timer
|
|
systemctl disable multipathd.service
|
|
systemctl disable multipathd.socket
|
|
systemctl disable lvm2-monitor.service
|
|
systemctl mask systemd-backlight@.service
|
|
systemctl mask systemd-udevd.service
|
|
systemctl mask systemd-udevd-control.socket
|
|
systemctl mask systemd-udevd-kernel.socket
|
|
systemctl mask systemd-udev-trigger.service
|
|
systemctl mask systemd-udev-settle.service
|
|
systemctl disable dpkg-db-backup.timer
|
|
systemctl disable ua-reboot-cmds.service
|
|
systemctl disable ubuntu-advantage.service
|
|
systemctl disable update-notifier-download.timer
|
|
systemctl disable update-notifier-download.service
|
|
systemctl disable update-notifier-motd.timer
|
|
systemctl disable update-notifier-motd.service
|
|
systemctl disable man-db.timer
|
|
|
|
# Disable NFS stuff by default
|
|
systemctl disable rpcbind
|
|
systemctl disable dnsmasq.service
|
|
systemctl disable nfs-client.target
|
|
systemctl disable remote-fs-pre.target
|
|
|
|
# Service is from ifupdown but ifupdown is managed by NetworkManager
|
|
# networking service fails with "ifup: failed to bring up lo"
|
|
# no influence on any interface, all interfaces work fine
|
|
systemctl disable networking.service
|
|
|
|
systemctl disable console-setup.service
|