Thread
:
How to upgrade the internal memory by extending the root filesystem to a memory card
View Single Post
aflegg
2006-07-11 , 15:15
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#
133
The problem is that the user invokes "Turn off the device" from the desktop, and maemo_af_desktop then (eventually) invokes
/etc/init.d/minishutdown
.
The current working directory of the script when invoked like this is /home/user, meaning that trying to unmount it - if it's a union (which most people would have) - is tricky.
The suggestion I've made to Heike is to re-execute the shutdown scripts; something like:
Code:
#!/bin/sh if [ "x$1" != "xreexec" ]; then cd / exec $0 reexec fi ...
Then, from '...' onwards, you'll be guaranteed that /home/user is not
the current directory.
Cheers,
Andrew
__________________
Andrew Flegg
-- mailto:andrew@bleb.org |
http://www.bleb.org
Now known as
Jaffa
Quote & Reply
|
aflegg
View Public Profile
Send a private message to aflegg
Visit aflegg's homepage!
Find all posts by aflegg