summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>2000-01-01 02:10:43 +0900
committerroot <root@avtech.domain.avtechpulse.com>2000-01-01 02:10:43 +0900
commit78e6341aeabfca0a279a4cd52997109eee3ca136 (patch)
tree5db37a8d06ec8356c60aa0e22936f03045288b33
parentd7020aaebe31dd7a1cf25d38195ffe75ac48f024 (diff)
remount root mount without hard-coded partition name
-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);
}