[packages_10.03.2] at: merge r27801, r27898, r28909
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 5 Feb 2012 16:41:04 +0000 (16:41 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 5 Feb 2012 16:41:04 +0000 (16:41 +0000)
SVN-Revision: 30287

utils/at/Makefile
utils/at/files/atd.init

index d0a36766d6cd2b884984375a2e2f751261829769..fcb0bee7107fc010dacbd1a643a4bedbbfe4bd90 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=at
 PKG_VERSION:=3.1.12
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/a/at
index e7b097edec8e1249916ef8bc2b61cc5283e685dd..6254d29f2b77f98f4ecc92261746d90b895994f8 100755 (executable)
@@ -1,15 +1,23 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2011 OpenWrt.org
+
 START=50
 
+SERVICE_USE_PID=1
+
 start() {
-       [ -d /var/spool/cron/atjobs ] || mkdir -p /var/spool/cron/atjobs
-       [ -d /var/spool/cron/atspool ] || mkdir -p /var/spool/cron/atspool
-       [ -f /var/spool/cron/atspool ] || > /var/spool/cron/atjobs/.SEQ
-       chown -R nobody:nogroup /var/spool/cron/atjobs /var/spool/cron/atspool
-       atd
+       [ -d /var/spool/cron/atjobs ] || {
+               mkdir -m 0755 -p /var/spool/cron/atjobs
+               touch /var/spool/cron/atjobs/.SEQ
+               chown -R nobody:nogroup /var/spool/cron/atjobs
+       }
+       [ -d /var/spool/cron/atspool ] || {
+               mkdir -m 0755 -p /var/spool/cron/atspool
+               chown -R nobody:nogroup /var/spool/cron/atspool
+       }
+       service_start /usr/sbin/atd
 }
 
 stop() {
-       killall atd
+       service_stop /usr/sbin/atd
 }