1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-01-03 20:42:07 +01:00

MycroftOS: Fix small mistakes in seeed configuration script

This commit is contained in:
Peter Steenbergen 2019-09-16 12:42:24 +02:00
parent 2f4c401b7f
commit e3a31304d0

View File

@ -22,6 +22,9 @@
set -x
exec 1>/var/log/$(basename $0).log 2>&1
mkdir -p /boot
mount -t vfat /dev/mmcblk0p1 /boot
#enable i2c interface
dtparam i2c_arm=on
modprobe i2c-dev
@ -29,16 +32,6 @@ modprobe i2c-dev
#enable spi interface
dtparam spi=on
# Check if /boot folder exist
if [ ! -d /boot ]; then
mkdir -p /boot
fi
# Check if /boot is mounted and mount it if not
if mountpoint -q /boot; then
mount -t vfat /dev/mmcblk0p1 /boot
fi
_VER_RUN=
function get_kernel_version() {
local ZIMAGE IMG_OFFSET
@ -156,7 +149,7 @@ if [ "$overlay" ]; then
echo "create $overlay pulse default file"
ln -s $pulse_default /etc/pulse/default.pa
echo "create $overlay pulse daemon file"
ln -s $pulsedaemon /etc/pulse/daemon.conf
ln -s $pulse_daemon /etc/pulse/daemon.conf
fi
alsactl restore