summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flash.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/flash.c b/flash.c
index 69cb09f..38f42a2 100644
--- a/flash.c
+++ b/flash.c
@@ -310,13 +310,21 @@ hdrlengthok:
void remount_root_as_writeable ()
{
- system("/usr/bin/mount -o remount,rw /dev/mmcblk03 /");
+ gchar *cmd;
+ cmd = g_strdup_printf ("/usr/bin/mount -o remount,rw %s /", globals.HWDetect.remount_point);
+ printf ("%s\n",cmd);
+ system(cmd);
+ g_free (cmd);
}
void remount_root_as_not_writeable ()
{
- system("/usr/bin/mount -o remount,ro /dev/mmcblk03 /");
+ gchar *cmd;
+ cmd = g_strdup_printf ("/usr/bin/mount -o remount,ro %s /", globals.HWDetect.remount_point);
+ printf ("%s\n",cmd);
+ system(cmd);
+ g_free (cmd);
}