[Done] Add also to group `spi`

This commit is contained in:
xdrm-brackets 2017-02-18 12:03:04 +01:00
parent d82b050c34
commit 91e49097bf
1 changed files with 3 additions and 2 deletions

View File

@ -163,12 +163,13 @@ step5(){
echo " - /etc/group"; echo " - /etc/group";
echo " (.) emulate \`groupadd ssh-key\`"; echo " (.) emulate \`groupadd ssh-key\`";
echo " - /etc/group"; echo " - /etc/group";
echo " (.) emulate \`usermod -a -G ssh-key,sats,gpio sats\`"; echo " (.) emulate \`usermod -a -G ssh-key,sats sats\`";
echo " (.) emulate \`usermod -a -G ssh-key pi\`"; echo " (.) emulate \`usermod -a -G ssh-key pi\`";
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$/\0,sats/' | sudo tee /mnt/etc/group > /dev/null; echo " (.) emulate \`usermod -a -G gpio,spi sats\`";
sudo cat /mnt/etc/group | sed 's/^gpio:x:997:pi$/\0,sats/' | sed 's/^spi:x:999:pi$/\0,sats/' | sudo tee /mnt/etc/group > /dev/null;
echo "<<< done": echo "<<< done":