From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] defaultenv-2: automount script: run mount only when ifup succeeds
Date: Wed, 23 May 2012 16:15:05 +0200 [thread overview]
Message-ID: <1337782505-8382-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1337782505-8382-1-git-send-email-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
defaultenv-2/base/init/automount | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/defaultenv-2/base/init/automount b/defaultenv-2/base/init/automount
index e029222..63099f9 100644
--- a/defaultenv-2/base/init/automount
+++ b/defaultenv-2/base/init/automount
@@ -8,20 +8,20 @@ fi
# automount server returned from dhcp server
mkdir -p /mnt/tftp-dhcp
-automount /mnt/tftp-dhcp 'ifup eth0; mount $eth0.serverip tftp /mnt/tftp-dhcp'
+automount /mnt/tftp-dhcp 'ifup eth0 && mount $eth0.serverip tftp /mnt/tftp-dhcp'
# automount nfs server example
#nfshost=somehost
#mkdir -p /mnt/${nfshost}
-#automount /mnt/$nfshost "ifup eth0; mount ${nfshost}:/tftpboot nfs /mnt/${nfshost}"
+#automount /mnt/$nfshost "ifup eth0 && mount ${nfshost}:/tftpboot nfs /mnt/${nfshost}"
# static tftp server example
#mkdir -p /mnt/tftp
-#automount -d /mnt/tftp 'ifup eth0; mount $serverip tftp /mnt/tftp'
+#automount -d /mnt/tftp 'ifup eth0 && mount $serverip tftp /mnt/tftp'
# FAT on usb disk example
#mkdir -p /mnt/fat
-#automount -d /mnt/fat 'usb; mount /dev/usbdisk0.0 fat $automount_path'
+#automount -d /mnt/fat 'usb && [ -e /dev/disk0.0 ] && mount /dev/disk0.0 fat /mnt/fat'
--
1.7.10
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2012-05-23 14:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-23 14:15 [PATCH 1/2] ARM Freescale i.MX51 babbage: switch to new default env Sascha Hauer
2012-05-23 14:15 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1337782505-8382-2-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox