what=$1
+if [ "$what" == "install" ] ; then
+
+cat > /etc/cron.d/apkpm <<__CRON__
+# m h dom mon dow user command
+*/15 * * * * dpavlin /srv/APKPM/cron.sh CPE_poll
+*/15 * * * * dpavlin /srv/APKPM/cron.sh ZTEDSLAM_poll
+*/15 * * * * dpavlin /srv/APKPM/cron.sh ZTEMSAN_poll
+__CRON__
+
+exit
+
+fi
+
running=`echo status | nc -w 1 localhost 4730 | grep ^$what | cut -d" " -f2`
if [ "$running" -gt 0 ] ; then
echo "$what allready queued!"