2022-12-18 22:21:22 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# #################### #
|
|
|
|
# Compatibility Script #
|
|
|
|
# #################### #
|
|
|
|
if [ ! -z "$1" ]; then
|
|
|
|
cmd=$1; shift
|
|
|
|
fi
|
|
|
|
|
|
|
|
case $cmd in
|
|
|
|
debian|ubuntu|apt|deb)
|
|
|
|
PM_COMMAND=apt \
|
|
|
|
PM_NOCONFIRM=-y \
|
|
|
|
PM_INSTALL=install \
|
|
|
|
PM_UPDATE=update \
|
|
|
|
PM_UPGRADE=upgrade \
|
|
|
|
PM_REMOVE=purge \
|
2022-12-18 23:45:15 +01:00
|
|
|
./sync.sh $@
|
2022-12-18 22:21:22 +01:00
|
|
|
;;
|
2022-12-18 23:45:15 +01:00
|
|
|
*|''|arch) ./sync.sh $cmd $@ ;;
|
2022-12-18 22:21:22 +01:00
|
|
|
esac
|