From patchwork Thu Nov 20 17:01:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 412787 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id C372D14012A for ; Fri, 21 Nov 2014 04:02:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 70118924D6; Thu, 20 Nov 2014 17:02:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y29H7z0TKDSR; Thu, 20 Nov 2014 17:02:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 260E492090; Thu, 20 Nov 2014 17:02:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1A5021BFA75 for ; Thu, 20 Nov 2014 17:02:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 170FD91AFA for ; Thu, 20 Nov 2014 17:02:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lsnVAVNIPQRs for ; Thu, 20 Nov 2014 17:02:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.zacarias.com.ar (www.zacarias.com.ar [62.210.192.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id A149C91809 for ; Thu, 20 Nov 2014 17:02:01 +0000 (UTC) Received: from asgard (cpe-181-46-99-160.telecentro-reversos.com.ar [181.46.99.160] (may be forged)) (authenticated bits=0) by www.zacarias.com.ar (8.14.9/8.14.9) with ESMTP id sAKH1sBa012751 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 20 Nov 2014 17:01:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1416502919; bh=+TTVq92r91fnih1Jh+utkEtohNiaNni3oboW0Q78BkI=; h=From:To:Cc:Subject:Date; b=kAb0czv9ack35SFfHNM9jd07Y0Rfb7KSjRCEp6/zrKIRzBopHUngaK8U6bCArWWfp lzI/a71SBcdE7gMR7MCgVxHdJUrjOsaPPtHk36/zaAzvrOlSCv3rezJFxmmHOtfxeH +3aH2gZddyY+R/HOeEXvNueMaAVg3pLeTDfBlXdc= Received: by asgard (sSMTP sendmail emulation); Thu, 20 Nov 2014 14:01:49 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Thu, 20 Nov 2014 14:01:49 -0300 Message-Id: <1416502909-5919-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 2.0.4 X-Virus-Scanned: clamav-milter 0.98.4 at www X-Virus-Status: Clean Subject: [Buildroot] [PATCH] system/inittab: adjust shutdown X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Drop null id since that means "don't show anything" for busybox init, hence the shutdown sequence (/etc/init.d/rcK) doesn't show anything giving the false impression that it's not being run. If someone wants a really silent console they'll need to adjust much more than this anyway. Also swap the root read-only remount with swapoff since the swap can be a regular (loop) file in the root filesystem and make the operation fail resulting in a dirty filesystem. Signed-off-by: Gustavo Zacarias --- system/skeleton/etc/inittab | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system/skeleton/etc/inittab b/system/skeleton/etc/inittab index 99d84e4..b1892c1 100644 --- a/system/skeleton/etc/inittab +++ b/system/skeleton/etc/inittab @@ -30,7 +30,6 @@ null::sysinit:/bin/hostname -F /etc/hostname ::ctrlaltdel:/sbin/reboot # Stuff to do before rebooting -null::shutdown:/etc/init.d/rcK -null::shutdown:/bin/umount -a -r -null::shutdown:/sbin/swapoff -a - +::shutdown:/etc/init.d/rcK +::shutdown:/sbin/swapoff -a +::shutdown:/bin/umount -a -r