2019-11-11 08:53:55 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
set -x
|
|
|
|
exec 1>/var/log/$(basename $0).log 2>&1
|
|
|
|
|
2019-11-17 14:30:43 +01:00
|
|
|
mkdir -p /boot
|
|
|
|
mount -t vfat /dev/mmcblk0p1 /boot
|
|
|
|
|
|
|
|
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
|
|
|
|
|
|
|
rm /var/lib/alsa/asound.state
|
2019-11-11 08:53:55 +01:00
|
|
|
rm /etc/pulse/default.pa
|
|
|
|
rm /etc/pulse/system.pa
|
|
|
|
rm /etc/pulse/daemon.conf
|
|
|
|
|
2019-11-17 14:30:43 +01:00
|
|
|
ln -s /var/lib/alsa/default-asound.state /var/lib/alsa/asound.state
|
2019-11-11 08:53:55 +01:00
|
|
|
ln -s /etc/pulse/pulseaudio-default.pa /etc/pulse/default.pa
|
|
|
|
ln -s /etc/pulse/pulseaudio-system.pa /etc/pulse/system.pa
|
|
|
|
ln -s /etc/pulse/pulseaudio-daemon.conf /etc/pulse/daemon.conf
|
2019-11-17 14:30:43 +01:00
|
|
|
|
2019-12-17 09:24:26 +01:00
|
|
|
export LC_ALL="C"
|
2019-12-20 21:05:12 +01:00
|
|
|
|
|
|
|
mkdir -p /etc/wpa_supplicant
|
|
|
|
if [ -f "/boot/wpa_supplicant.conf" ]; then
|
|
|
|
mv /boot/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
|
|
|
|
chmod 600 /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
|
|
|
|
fi
|