- Updated xkeysnail installer to properly copy desktop autostart and to restart service on config file changes

This commit is contained in:
Ben Reaves
2020-04-21 17:39:20 -05:00
parent 3b802d1d49
commit c1e2db9a2e
5 changed files with 49 additions and 7 deletions

21
system-config/unipkg.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
if pkgmgr="$( which apt-get )" 2> /dev/null; then
echo "Debian"
$pkgmgr update
$pkgmgr install "$1"
elif pkgmgr="$( which dnf )" 2> /dev/null; then
echo "dnf"
$pkgmgr check-update; $pkgmgr install -y "$1"
elif pkgmgr="$( which pacman )" 2> /dev/null; then
echo "Arch-based"
$pkgmgr -Syy; $pkgmr -S "$1"
else
echo "Package manager not found, please install $1" >&2
exit 1
fi
if [[ 1 -ne $# ]]; then
echo "Syntax: $0 PACKAGE"
exit 1
fi
exit $?