aboutsummaryrefslogtreecommitdiff
path: root/init.d/root.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/root.in')
-rw-r--r--init.d/root.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.d/root.in b/init.d/root.in
index ec0466c3..8d85acf2 100644
--- a/init.d/root.in
+++ b/init.d/root.in
@@ -12,6 +12,10 @@ depend()
start()
{
+ case ",$(fstabinfo -o /)," in
+ *,ro,*) return 0;;
+ esac
+
if echo 2>/dev/null >/.test.$$; then
rm -f /.test.$$ /fastboot /forcefsck
return 0