-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Post install script of capslock-auto-switch" | ||
echo "Enabling and starting service for "$SUDO_USER | ||
deb-systemd-invoke --machine=$SUDO_USER@ --user daemon-reload | ||
deb-systemd-invoke --machine=$SUDO_USER@ --user enable capslock-auto-switch | ||
deb-systemd-invoke --machine=$SUDO_USER@ --user start capslock-auto-switch | ||
echo " Enabling and starting service for $SUDO_USER" | ||
|
||
systemctl --machine="$SUDO_USER@.host" --user daemon-reload | ||
systemctl --machine="$SUDO_USER@.host" --user enable capslock-auto-switch | ||
systemctl --machine="$SUDO_USER@.host" --user start capslock-auto-switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set +e | ||
|
||
echo "Post remove script of capslock-auto-switch: $1" | ||
systemctl --machine="$SUDO_USER@.host" --user stop capslock-auto-switch | ||
systemctl --machine="$SUDO_USER@.host" --user disable capslock-auto-switch | ||
systemctl --machine="$SUDO_USER@.host" --user daemon-reload | ||
|
||
rm -f /etc/xdg/systemd/user/capslock-auto-switch.service | ||
rm -f /etc/systemd/user/capslock-auto-switch.service |