summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/moblockcontrol/moblockcontrol.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/community/moblockcontrol/moblockcontrol.install')
-rw-r--r--abs/extra/community/moblockcontrol/moblockcontrol.install28
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/extra/community/moblockcontrol/moblockcontrol.install b/abs/extra/community/moblockcontrol/moblockcontrol.install
new file mode 100644
index 0000000..439a3ee
--- /dev/null
+++ b/abs/extra/community/moblockcontrol/moblockcontrol.install
@@ -0,0 +1,28 @@
+post_install() {
+ if [ ! -d /var/spool/moblock/used ]
+ then
+ mkdir -p /var/spool/moblock/used
+ fi
+
+ if [ ! -e /etc/cron.daily/moblock-control-update.sh ]
+ then
+ ln -s /usr/bin/moblock-control-update.sh /etc/cron.daily/moblock-control-update.sh
+ fi
+}
+
+post_upgrade() {
+ if [ ! -d /var/spool/moblock/used ]
+ then
+ mkdir -p /var/spool/moblock/used
+ fi
+
+ if [ ! -e /etc/cron.daily/moblock-control-update.sh ]
+ then
+ ln -s /usr/bin/moblock-control-update.sh /etc/cron.daily/moblock-control-update.sh
+ fi
+}
+
+op=$1
+shift
+$op $*
+