Initial commit. It's far from finished.
This commit is contained in:
27
agent/pkgctl.sh
Executable file
27
agent/pkgctl.sh
Executable 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
|
||||
Reference in New Issue
Block a user