Initial commit. It's far from finished.

This commit is contained in:
2016-08-08 11:12:06 +03:00
commit e9f3673bfd
30 changed files with 1948 additions and 0 deletions

27
agent/pkgctl.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
OS=`sh detect-unix.sh`
# Determine task
#case $1 in
# install)
# remove)
# update)
# query)
#esac
# Determine package manager
case "$OS" in
"Arch Linux") PM="pacman" ;;
"Fedora") PM="yum" ;;
"Red Hat") PM="yum" ;;
"CentOS") PM="yum" ;;
"SUSE") PM="yum" ;;
"Ubuntu") PM="apt" ;;
"Debian") PM="apt" ;;
esac
#if [ "$OS" = "Arch Linux" ] ; then
# PM="pacman"
#fi
echo $PM