Nicer rc scripts

Malcolm malcolm.parsons at gmail.com
Sun Apr 8 15:13:29 CEST 2007


On 4/8/07, Stefan Sperling <stsp at stsp.in-berlin.de> wrote:
> On Sun, Apr 08, 2007 at 01:03:53PM +0100, Benjamin Tomos Lewis wrote:

> > +echo "Mounting /media..."
> > +echo " Trying vfat on SD card..."
> > +mount -t vfat -o noatime /dev/mmcblk1 /media & rchelper $?
>
> That won't work, & is wrong. Use && :
>
>   mount -t vfat -o noatime /dev/mmcblk1 /media && rchelper $?

&& won't work, use a newline.

mount -t vfat -o noatime /dev/mmcblk1 /media
rchelper $?

-- 
Malcolm Parsons



More information about the dslinux-devel mailing list