A few updates to make code work across x86_64 and aarch64.
This commit is contained in:
@@ -9,14 +9,16 @@ check_usb_port() {
|
|||||||
if [[ -f "$speed_file" ]]; then
|
if [[ -f "$speed_file" ]]; then
|
||||||
speed=$(cat "$speed_file")
|
speed=$(cat "$speed_file")
|
||||||
if [[ $speed -lt 1000 ]]; then
|
if [[ $speed -lt 1000 ]]; then
|
||||||
spd-say -Cw "Warning. USB 2.0 detected. Please power off the Pi and move the USB drive to a USB 3 port for better performance."
|
spd-say -Cw "Warning. USB 2.0 detected. Please power off the system and move the USB drive to a USB 3 port for better performance."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# set performance
|
# set performance (if scaling governor exists)
|
||||||
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
if [[ -d /sys/devices/system/cpu/cpu0/cpufreq ]]; then
|
||||||
|
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
# Find the USB bus speed for the boot drive
|
# Find the USB bus speed for the boot drive
|
||||||
device=$(findmnt / -o SOURCE -n | sed 's/[0-9]*$//')
|
device=$(findmnt / -o SOURCE -n | sed 's/[0-9]*$//')
|
||||||
|
|||||||
@@ -163,7 +163,6 @@ fi
|
|||||||
print_message "Configuring system for installed boot..."
|
print_message "Configuring system for installed boot..."
|
||||||
|
|
||||||
# Remove live-specific files and services
|
# Remove live-specific files and services
|
||||||
rm -f /mnt/stormux-install/etc/systemd/system/getty@tty1.service.d/autologin.conf
|
|
||||||
rm -f /mnt/stormux-install/etc/systemd/system/multi-user.target.wants/choose-mirror.service
|
rm -f /mnt/stormux-install/etc/systemd/system/multi-user.target.wants/choose-mirror.service
|
||||||
rm -rf /mnt/stormux-install/etc/systemd/system/etc-pacman.d-gnupg.mount
|
rm -rf /mnt/stormux-install/etc/systemd/system/etc-pacman.d-gnupg.mount
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user