true remove_orphaned # ocisti stare libove nakon sto su cn paketi nadogradjeni
# i ostatak
true add_group_proc # za oidentd
-true pkgadd monit-cn
+true enable_monit
pkg kernel-2.6-cn dpkg-reconfigure kernel-2.6-cn
true dpkg-reconfigure sysv-rc
# ovo bi trebalo biti predzadnje na popisu
apt-get remove --yes monit
# stop the binary
pkill -9 monit || true
+ # move away init for insserv to work
+ mv /etc/init.d/monit /var/lib/carnet-upgrade/
fi
}
+# allow monit to run again
+enable_monit () {
+ if [ -f /var/lib/carnet-upgrade/monit ]; then
+ mv /var/lib/carnet-upgrade/monit /etc/init.d/monit
+ pkgadd monit-cn
+ fi
+}
+
# check which of the given packages are installed
grep_installed () {
local package installed