diff options
-rw-r--r-- | flash.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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); } |