- Corrected chromebook config file and updated the initialization of the keyswap service file to work when re-running the installer on a currently running version of kinto

This commit is contained in:
Ben Reaves
2020-02-05 00:12:44 -06:00
parent d8c516c13c
commit 072249d5d4
2 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
systemctl --user stop keyswap >/dev/null 2>&1
systemctl --user disable keyswap >/dev/null 2>&1
swapcmd="\/bin\/bash\ \/home\/`whoami`\/.config\/kinto\/xactive.sh"
mkdir -p ~/.config/systemd/user
mkdir -p ~/.config/autostart
@@ -10,4 +12,5 @@ cp ./system-config/xactive.sh ~/.config/kinto/xactive.sh
sed -i "s/{username}/`whoami`/g" ~/.config/systemd/user/keyswap.service
sed -i "s/ExecStart=/ExecStart=${swapcmd}/g" ~/.config/systemd/user/keyswap.service
systemctl --user enable keyswap.timer
systemctl --user start keyswap.timer
systemctl --user start keyswap.timer
systemctl --user start keyswap