install.sh (466B)
1 #!/bin/bash 2 3 ROOT_UID=0 # Root has $UID 0. 4 5 update=$1 6 7 if [ "$UID" -eq "$ROOT_UID" ] 8 then 9 echo "OK" 10 else 11 echo "Run with sudo!" 12 echo "sudo ./install.sh" 13 exit 0 14 fi 15 16 cat <<'EOF' >> /etc/modprobe.d/blacklist.conf 17 blacklist pinephone-keyboard 18 EOF 19 20 cat <<'EOF' >> /etc/modules 21 i2c-bcm2708 22 i2c-dev 23 EOF 24 25 sudo update-initramfs -u 26 sudo cp ppkb-i2c-inputd.service /etc/systemd/system/ 27 sudo systemctl enable ppkb-i2c-inputd.service 28 sudo systemctl daemon-reload