[Fixed] SPI-py install + group gpio correction

This commit is contained in:
xdrm-brackets 2017-02-18 11:32:04 +01:00
parent d2461a5208
commit 3f1bfd1c37
3 changed files with 7 additions and 3 deletions

View File

@ -168,6 +168,7 @@ step5(){
echo " - /etc/group"; echo " - /etc/group";
cat ./utility/group_append | sudo tee -a /mnt/etc/group > /dev/null; cat ./utility/group_append | sudo tee -a /mnt/etc/group > /dev/null;
cat ./utility/group_append | sudo tee -a /mnt/etc/group- > /dev/null; cat ./utility/group_append | sudo tee -a /mnt/etc/group- > /dev/null;
sudo cat /mnt/etc/group | sed 's/(gpio:x:997:pi)/$1,sats/' | sudo tee /mnt/etc/group > /dev/null;
echo "<<< done": echo "<<< done":

View File

@ -1,2 +1,2 @@
ssh-key:x:555:pi,sats ssh-key:x:555:pi,sats
sats:x:666:sats,gpio sats:x:666:sats

View File

@ -44,8 +44,11 @@ if [ -e /home/pi/first_boot ]; then
# (3) Clone SPI python library # # (3) Clone SPI python library #
sudo git clone https://github.com/lthiery/SPI-Py.git /home/pi/spi-lib; sudo git clone https://github.com/lthiery/SPI-Py.git /home/pi/spi-lib;
sudo python /home/pi/spi-lib/setup.py build;
sudo python /home/pi/spi-lib/setup.py install; # (4) Install SPI python library #
cd /home/pi/spi-lib;
sudo python setup.py build;
sudo python setup.py install;
# (4) Reboot to activate SPI # # (4) Reboot to activate SPI #
sudo reboot; sudo reboot;