[mdlug] Adding a shell script to run after boot.

Adam Behnke abehnke at gmail.com
Wed Apr 17 13:28:28 EDT 2013


The usb does not automount on boot for this pc despite being set too. I
tried adding the flash drive to fstab by label, uuid and id, but i keep
getting the error on boot prompting me to hit "s" to skip mounting it or
"m" to manually recover.

It will automount if i plug a usb after it boots. i'm reading on google
that it's a known bug regarding my test pc's crappy old dell's bios.

i picked a bad computer to use, lol.

matt: it's in the seem line. unless i have the syntax wrong, it should
define which playlist to use


On Wed, Apr 17, 2013 at 1:00 PM, Mat Enders <mat.enders at gmail.com> wrote:

> Is this supposed to be 2 separate lines
>
> mplayer -vo xv -fs -stop-xscreensaver -loop 0 -zoom -playlist
> /home/user/playlist.txt
>
> Because the error at the bottom makes it seem as if the argument after
> -playlist is missing
>
>
> On Wed, Apr 17, 2013 at 12:18 PM, Jeff Hanson <jhansonxi at gmail.com> wrote:
>
> > If it's a timing problem then just repeatedly check the mountpoint via
> > while/do/done loop.  Add a sleep command and a counter with a "break" to
> > escape the loop if it doesn't mount after a set number of cycles.
> >
> >
> > On Wed, Apr 17, 2013 at 10:38 AM, Adam Behnke <abehnke at gmail.com> wrote:
> >
> > > i am trying to trying to determine if the usb is mounted and create an
> > > alternate method of playing the menuboard it the usb drive didn't
> mount.
> > >
> > > thank you for the suggestions, i'll trying grepping and mounting
> > somewhere
> > > other than /media if it doesn't see the usb drive and googling dbus
> > > signals.
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Wed, Apr 17, 2013 at 10:09 AM, Jonathan Billings <
> billings at negate.org
> > > >wrote:
> > >
> > > > On Wed, Apr 17, 2013 at 09:26:24AM -0400, Adam Behnke wrote:
> > > > >
> > > > > the script currently, works in terminal, fails on startup
> > > > >
> > > > > #!/bin/bash -l
> > > > > echo "initializing"
> > > > > if [ "$(ls -A /media/videowall9)" ]; then
> > > >
> > > > What are you trying to do here?  Determine if the mountpoint exists?
> > > > You might be better off replacing the "$(..)" with a grep of
> > > > /proc/mounts.
> > > >
> > > > > umount /media/videowall9
> > > > > rmdir /media/videowall9
> > > >
> > > > I bet /media is an automount directory (or something gvfs monitors?)
> > > > so you can't willy-nilly create and delete mountpoints in /media.
> > > > Also, this is running in your user's context, and I doubt it has the
> > > > ability to create and remove mountpoints in /media.  This is why the
> > > > automount systems exist.
> > > >
> > > > If you really want to have your external storage always mounted
> > > > somewhere, put it in /etc/fstab and mount it someplace other than
> > > > /media.  There are options you can set to have the user have the
> > > > ability to mount/unmount it on demand, although not automatically.
> > > >
> > > > If you want some command to run on graphical login, you need to have
> > > > it either listen for an event from the DBus system about the
> > > > mountpoint, or (less complex) just have it sit around and wait until
> > > > the mountpoints exist.
> > > >
> > > > --
> > > > Jonathan Billings <billings at negate.org>
> > > > _______________________________________________
> > > > mdlug mailing list
> > > > mdlug at mdlug.org
> > > > http://mdlug.org/mailman/listinfo/mdlug
> > > >
> > > _______________________________________________
> > > mdlug mailing list
> > > mdlug at mdlug.org
> > > http://mdlug.org/mailman/listinfo/mdlug
> > >
> > _______________________________________________
> > mdlug mailing list
> > mdlug at mdlug.org
> > http://mdlug.org/mailman/listinfo/mdlug
> >
>
>
>
> --
> Mathew E. Enders
>
> "Where once Samba and Apache sold Linux to the world they are now just part
> of the plumbing.  But that's OK, plumbers make good money."
> --Jeremy Allison
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>


More information about the mdlug mailing list