Skip to content

Commit

Permalink
Fix raspi-config on Build 3
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Feb 24, 2019
1 parent 45d1d6d commit f26c53d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/160-rpi-raspi-config
@@ -0,0 +1,14 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

platform=$(/usr/local/bin/nems-info platform)

if [[ $platform < 10 ]]; then
if [ ! $(dpkg-query -W -f='${Status}' raspi-config 2>/dev/null | grep -c "ok installed") -eq 1 ]; then
wget -O /tmp/raspi-config.deb http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20180406+1_all.deb
apt -y install libnewt0.52 parted triggerhappy
apt install -fy
dpkg -i /tmp/raspi-config.deb
rm -f /tmp/raspi-config.deb
fi
fi

0 comments on commit f26c53d

Please sign in to comment.