[Fixed] SPI-py install + group gpio correction
This commit is contained in:
parent
d2461a5208
commit
3f1bfd1c37
|
@ -168,6 +168,7 @@ step5(){
|
|||
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;
|
||||
sudo cat /mnt/etc/group | sed 's/(gpio:x:997:pi)/$1,sats/' | sudo tee /mnt/etc/group > /dev/null;
|
||||
|
||||
echo "<<< done":
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
ssh-key:x:555:pi,sats
|
||||
sats:x:666:sats,gpio
|
||||
sats:x:666:sats
|
||||
|
|
|
@ -44,8 +44,11 @@ if [ -e /home/pi/first_boot ]; then
|
|||
|
||||
# (3) Clone SPI python library #
|
||||
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 #
|
||||
sudo reboot;
|
||||
|
|
Loading…
Reference in New Issue