27 lines
699 B
Bash
Executable file
27 lines
699 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
echo "Add tablet group..."
|
|
/usr/sbin/groupadd tablet
|
|
|
|
read -p "Enter your local username: " user
|
|
|
|
echo "Add user to group..."
|
|
usermod -a -G tablet "$user"
|
|
|
|
echo "Copy files..."
|
|
cp -r tabletmode/ /usr/local/lib/python3.11/dist-packages
|
|
cp tablet-mode.service /etc/systemd/system
|
|
cp laptop-mode.service /etc/systemd/system
|
|
cp tablet-mode.json /etc/
|
|
cp tablet-mode.desktop /home/"$user"/.local/applications
|
|
cp tablet-mode.sudoers /etc/sudoers.d/tablet-mode
|
|
cp setsysmode /usr/local/bin
|
|
chmod +x /usr/local/bin/setsysmode
|
|
cp sysmoded /usr/local/bin
|
|
chmod +x /usr/local/bin/sysmoded
|
|
|
|
echo "Reload systemd..."
|
|
systemctl daemon-reload
|
|
|
|
echo "Install packages..."
|
|
apt install evtest -y
|