[Done] Add also to group `spi`
This commit is contained in:
parent
d82b050c34
commit
91e49097bf
|
@ -163,12 +163,13 @@ step5(){
|
|||
echo " - /etc/group";
|
||||
echo " (.) emulate \`groupadd ssh-key\`";
|
||||
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 " - /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$/\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":
|
||||
|
||||
|
|
Loading…
Reference in New Issue