summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/hosted/ibasso/vold-ibasso.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/target/hosted/ibasso/vold-ibasso.c b/firmware/target/hosted/ibasso/vold-ibasso.c
index f56bd683d3..c0cb06b6b8 100644
--- a/firmware/target/hosted/ibasso/vold-ibasso.c
+++ b/firmware/target/hosted/ibasso/vold-ibasso.c
@@ -26,6 +26,7 @@
26#include <stdbool.h> 26#include <stdbool.h>
27#include <string.h> 27#include <string.h>
28#include <unistd.h> 28#include <unistd.h>
29#include <stdlib.h>
29#include <sys/poll.h> 30#include <sys/poll.h>
30#include <sys/socket.h> 31#include <sys/socket.h>
31#include <sys/types.h> 32#include <sys/types.h>
@@ -82,7 +83,7 @@ static void vold_monitor_open_socket(void)
82} 83}
83 84
84/* Track state of external SD */ 85/* Track state of external SD */
85bool extsd_present = false; 86bool extsd_present = true; /* Worst-case is it will show up empty */
86 87
87/* 88/*
88 bionic does not have pthread_cancel. 89 bionic does not have pthread_cancel.
@@ -107,6 +108,10 @@ static void* vold_monitor_run(void* nothing)
107 108
108 DEBUGF("DEBUG %s: Thread start.", __func__); 109 DEBUGF("DEBUG %s: Thread start.", __func__);
109 110
111 /* Check to see if external SD is mounted */
112// extsd_present = !system("mountpoint -q /mnt/external_sd");
113// extsd_present = !system("mount -o remount,rw /mnt/external_sd");
114
110 vold_monitor_open_socket(); 115 vold_monitor_open_socket();
111 if(_vold_monitor_socket_fd < 0) 116 if(_vold_monitor_socket_fd < 0)
112 { 117 {