From patchwork Sat Oct 3 12:18:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 525885 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id BA5B51402F0 for ; Sat, 3 Oct 2015 22:18:30 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=XVQ2wxYJ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 04C578B44E; Sat, 3 Oct 2015 12:18:30 +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 ZWv2s-T5OiZF; Sat, 3 Oct 2015 12:18:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 9249C8B2E2; Sat, 3 Oct 2015 12:18:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 07DFE1C08FE for ; Sat, 3 Oct 2015 12:18:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 021438B177 for ; Sat, 3 Oct 2015 12:18:24 +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 hjZRmRtkn0yd for ; Sat, 3 Oct 2015 12:18:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id DB2278B35D for ; Sat, 3 Oct 2015 12:18:21 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so60568997wic.0 for ; Sat, 03 Oct 2015 05:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DM8V9JBIcmkkU042M+782zOAOIH0Upab89DsYLXOdvc=; b=XVQ2wxYJqffxYSvmIMJ1fGbuq2HXgQaw+b9HUjIkSjrfUWme/gtrzbmLAwRrQsIfyi Tn6u9kvjQRn+2WKUwHFeziuzJa+l15UxYDIcYsZjo1kd89jleDBNpfhHB0iTIITglFd6 7m8aaXoBpUNSf/xKbv7YPpAXmiHhGLslBBrvH/KcBwT+iZg42QH1FYZc+zxosRjdG9fG pzzJqCKicqV/+goWmN2LbRIOZqfnJ2lZdArJiO0dD0omu3CrcPbQ1gToIb62WVbK/ded F8DAiWhJrtrJw6xkNCy8WaIs5ZJQVkp7xzRCTIv+ZVP9wJZmG9KzyBn0JqYQPh1Qk9/N yMVg== X-Received: by 10.194.62.20 with SMTP id u20mr24231640wjr.2.1443874700599; Sat, 03 Oct 2015 05:18:20 -0700 (PDT) Received: from localhost.localdomain (LPoitiers-656-1-204-92.w80-11.abo.wanadoo.fr. [80.11.219.92]) by smtp.gmail.com with ESMTPSA id hd1sm3934702wib.5.2015.10.03.05.18.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 05:18:19 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sat, 3 Oct 2015 14:18:08 +0200 Message-Id: <1443874688-8812-3-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1443874688-8812-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1443874688-8812-1-git-send-email-maxime.hadjinlian@gmail.com> Subject: [Buildroot] [PATCH v2 3/3] skeleton: Pretty fixes for /etc/profile 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" Fix indent and put PATH on a single line. Signed-off-by: Maxime Hadjinlian --- system/skeleton/etc/profile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/system/skeleton/etc/profile b/system/skeleton/etc/profile index c40a311..df0be7f 100644 --- a/system/skeleton/etc/profile +++ b/system/skeleton/etc/profile @@ -1,13 +1,9 @@ -export PATH=\ -/bin:\ -/sbin:\ -/usr/bin:\ -/usr/sbin +export PATH=/bin:/sbin:/usr/bin:/usr/sbin if [ "`id -u`" -eq 0 ]; then - export PS1='# ' + export PS1='# ' else - export PS1='$ ' + export PS1='$ ' fi export PAGER='/bin/more ' @@ -15,8 +11,8 @@ export EDITOR='/bin/vi' # Source configuration files from /etc/profile.d for i in /etc/profile.d/*.sh ; do - if [ -r "$i" ]; then - . $i - fi - unset i + if [ -r "$i" ]; then + . $i + fi + unset i done