Hi Mikko,

Mikko Rapeli wrote:
The problem is quite simple, though I don't understand the reasons for the
laptop_mode coding style with environment variables. With the fix below
I get LVM partitions remounted:

I see, thanks for reporting this! Unfortunately adding the spaces to the beginning and end is somewhat necessary, because otherwise (for instance) the partition /dev/automatic_thingummy will be found using "grep auto". I think the trick would be to do something like:

if ( (echo -n " " ; echo -n "$PARTITIONS" ; echo -n " ") | grep " $DEV " > /dev/null ) ; then

Does it work for you that way?

Cheers,
Bart


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to