mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
added install command to action script
This commit is contained in:
parent
08b0f37527
commit
7cb98f2122
@ -211,6 +211,18 @@ case $cmd in
|
|||||||
echo "no update recorded since last config change"
|
echo "no update recorded since last config change"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
install)
|
||||||
|
cd /tmp/ && apt-get download ${TOOLNAME}
|
||||||
|
dpkg --unpack ${TOOLNAME}*.deb
|
||||||
|
rm /var/lib/dpkg/info/${TOOLNAME}.postinst
|
||||||
|
dpkg --configure ${TOOLNAME}
|
||||||
|
apt-get install -yf
|
||||||
|
rm ${TOOLNAME}*.deb
|
||||||
|
cd -
|
||||||
|
;;
|
||||||
|
uninstall)
|
||||||
|
apt-get -y remove --purge ez-ipupdate
|
||||||
|
;;
|
||||||
get-installed)
|
get-installed)
|
||||||
if [ ! -z ${UPDATE_TOOL} ];then
|
if [ ! -z ${UPDATE_TOOL} ];then
|
||||||
echo "installed"
|
echo "installed"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user