diff options
author | root <root@avtech.domain.avtechpulse.com> | 2000-01-01 02:10:43 +0900 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 2000-01-01 02:10:43 +0900 |
commit | 78e6341aeabfca0a279a4cd52997109eee3ca136 (patch) | |
tree | 5db37a8d06ec8356c60aa0e22936f03045288b33 | |
parent | d7020aaebe31dd7a1cf25d38195ffe75ac48f024 (diff) |
remount root mount without hard-coded partition name
-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); } |