diff --git a/clone/clone b/clone/clone index 995403f..05eb98d 100755 --- a/clone/clone +++ b/clone/clone @@ -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": diff --git a/clone/utility/group_append b/clone/utility/group_append index 5e41fcf..9eac47f 100644 --- a/clone/utility/group_append +++ b/clone/utility/group_append @@ -1,2 +1,2 @@ ssh-key:x:555:pi,sats -sats:x:666:sats,gpio +sats:x:666:sats diff --git a/clone/utility/sats-boot b/clone/utility/sats-boot index 186890a..232edc3 100644 --- a/clone/utility/sats-boot +++ b/clone/utility/sats-boot @@ -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;