diff --git a/Luckfox-Pico-Mini-details-inter.jpg b/Luckfox-Pico-Mini-details-inter.jpg deleted file mode 100644 index b2f69d3..0000000 Binary files a/Luckfox-Pico-Mini-details-inter.jpg and /dev/null differ diff --git a/luckfox-pico-mini_wiring-diagram-01.png b/luckfox_pinout.png similarity index 84% rename from luckfox-pico-mini_wiring-diagram-01.png rename to luckfox_pinout.png index 2f979d6..1166a5e 100644 Binary files a/luckfox-pico-mini_wiring-diagram-01.png and b/luckfox_pinout.png differ diff --git a/scripts/luckfox-install.sh b/scripts/luckfox-install.sh index 7722bb8..3b980f3 100644 --- a/scripts/luckfox-install.sh +++ b/scripts/luckfox-install.sh @@ -78,13 +78,42 @@ else fi #disable redundant services -printf "*** $(date "+%H:%M:%S %Z"): Disabling redundant services... ***\e[0m\n" -sudo systemctl disable vsftpd.service -sudo systemctl disable ModemManager.service -sudo systemctl disable polkit.service -sudo systemctl disable getty@tty1.service -sudo systemctl disable alsa-restore.service -printf "*** $(date "+%H:%M:%S %Z"): Disabled redundant services ***\e[0m\n" +printf "*** $(date "+%H:%M:%S %Z"): Disabling and masking redundant services... ***\e[0m\n" +sudo systemctl disable vsftpd.service #we don't need this +sudo systemctl mask vsftpd.service +sudo systemctl disable ModemManager.service #or this +sudo systemctl mask ModemManager.service +sudo systemctl disable polkit.service #or this +sudo systemctl mask polkit.service +sudo systemctl disable getty@tty1.service #this is for direct console, not uart debug. We don't have one of those +sudo systemctl mask getty@tty1.service +sudo systemctl disable acpid #shutdown/sleep/hibernate: unused +sudo systemctl mask acpid +sudo systemctl disable acpid.socket +sudo systemctl mask acpid.socket +sudo systemctl disable acpid.service +sudo systemctl mask acpid.service +sudo systemctl disable alsa-restore.service #sound service +sudo systemctl mask alsa-restore.service +sudo systemctl disable alsa-state.service +sudo systemctl mask alsa-state.service +sudo mkdir -p /etc/systemd/system/sound.target.d +sudo echo -e "[Unit]\nConditionPathExists=!/dev/snd" | sudo tee /etc/systemd/system/sound.target.d/override.conf > /dev/null +sudo systemctl mask sound.target +sudo systemctl disable remote-fs.target #remote filesystems over network +sudo systemctl mask remote-fs.target +sudo systemctl disable veritysetup.target #we don't use this +sudo systemctl mask veritysetup.target +sudo systemctl disable cryptsetup.target #we don't have any encrypted partitions +sudo systemctl mask cryptsetup.target +sudo systemctl disable ntp.service #we are not currently using ntp +sudo systemctl mask ntp.service +sudo systemctl disable ntp-systemd-netif.path +sudo systemctl mask ntp-systemd-netif.path +sudo systemctl disable systemd-pstore.service #kernel crashes, recovery/logging, state persistence, etc. Redundant +sudo systemctl mask systemd-pstore.service +sudo systemctl daemon-reload +printf "*** $(date "+%H:%M:%S %Z"): Disabled and masked redundant services ***\e[0m\n" #change luckfox system config printf "*** $(date "+%H:%M:%S %Z"): Changing Luckfox system config ***\e[0m\n"