From patchwork Fri Oct 4 05:52:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Kim_B=C3=B8ndergaard?= X-Patchwork-Id: 280470 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 85D982C00C3 for ; Fri, 4 Oct 2013 15:52:37 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 57B04447E4 for ; Fri, 4 Oct 2013 07:52:36 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail02.prevas.se (mail02.prevas.se [62.95.78.10]) by hugin.dotsrc.org (Postfix) with ESMTPS id 91B15447E5 for ; Fri, 4 Oct 2013 07:52:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=679; q=dns/txt; s=ironport2; t=1380865952; x=1412401952; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=37weWa8pxdn4vPFjhv6DKNRfliIxXCKLaILO7ckC2Bs=; b=tROEPriAlenWIb2pfKAb58bfkqI98mnCTmpnJ+grmacNPWhyG1aF5Wz1 SrQANPAg8euydDe4lSn70U8y+d7pFd7QwGDQeBW6iCrfXRgINLOU9AJe5 YGRiy0OP0PSxh1Po+taxk9BUSF25MfdbdzSefH2D0VwqeNoMfcOBgKJAM w=; X-IronPort-AV: E=Sophos;i="4.90,1030,1371074400"; d="scan'208";a="3746426" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport2.prevas.se with ESMTP/TLS/AES128-SHA; 04 Oct 2013 07:52:31 +0200 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Fri, 4 Oct 2013 07:52:31 +0200 Received: by localhost (Postfix, from userid 30019) id 151326814CD; Fri, 4 Oct 2013 05:52:31 +0000 (UTC) From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= To: Subject: [PATCH 2/3] image_crontab.oeclass: Now able to handle none-root crontabs Date: Fri, 4 Oct 2013 05:52:29 +0000 Message-ID: X-Mailer: git-send-email 1.8.4 In-Reply-To: References: MIME-Version: 1.0 Cc: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org --- classes/image_crontab.oeclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/image_crontab.oeclass b/classes/image_crontab.oeclass index 0a2d65b..32899a5 100644 --- a/classes/image_crontab.oeclass +++ b/classes/image_crontab.oeclass @@ -5,8 +5,9 @@ IMAGE_PREPROCESS_FUNCS:>USE_crontab = " image_preprocess_crontab" image_preprocess_crontab () { cwd=`pwd` test -d $cwd/${crontabdir} || return 0 - for f in $cwd/${crontabdir}/root.* ; do - cat $f >> $cwd${crontabdir}/root + for f in $cwd/${crontabdir}/*.* ; do + user=`basename $f | cut -d. -f1` + cat $f >> $cwd${crontabdir}/$user rm $f done }