summaryrefslogtreecommitdiff
path: root/over/usr
diff options
context:
space:
mode:
Diffstat (limited to 'over/usr')
-rwxr-xr-xover/usr/libexec/cydia_/fstab.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/over/usr/libexec/cydia_/fstab.sh b/over/usr/libexec/cydia_/fstab.sh
new file mode 100755
index 000000000..0414389c3
--- /dev/null
+++ b/over/usr/libexec/cydia_/fstab.sh
@@ -0,0 +1,9 @@
+#!/usr/libexec/cydia_/bash
+export PATH=/usr/libexec/cydia_
+
+if grep -Ew 'noexec|ro' /etc/fstab >/dev/null; then
+ sed -i -e 's/\<ro\>/rw/;s/,noexec\>//' /etc/fstab
+ exit 1
+else
+ exit 0
+fi