aboutsummaryrefslogtreecommitdiffstats
path: root/package/block-mount
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-12-19 09:41:28 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-12-19 09:41:28 +0000
commit6d12ce8a24802bdadbe6148a46886bf32792510c (patch)
treee2d90b7c766e0ba7ac6882a36acae11ba151b169 /package/block-mount
parentb156d3ef75f89f520ea5e1f8d227d7d7458bf297 (diff)
downloadmaster-187ad058-6d12ce8a24802bdadbe6148a46886bf32792510c.tar.gz
master-187ad058-6d12ce8a24802bdadbe6148a46886bf32792510c.tar.bz2
master-187ad058-6d12ce8a24802bdadbe6148a46886bf32792510c.zip
block-mount: add a delay between sto pand start in fstab init restart action, fixes a lock race condition observed in VirtualBox
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34784 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/block-mount')
-rw-r--r--package/block-mount/Makefile2
-rw-r--r--package/block-mount/files/fstab.init6
2 files changed, 6 insertions, 2 deletions
diff --git a/package/block-mount/Makefile b/package/block-mount/Makefile
index 799539e4bd..06deb9401d 100644
--- a/package/block-mount/Makefile
+++ b/package/block-mount/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=block-mount
PKG_VERSION:=0.2.0
-PKG_RELEASE:=9
+PKG_RELEASE:=10
include $(INCLUDE_DIR)/package.mk
diff --git a/package/block-mount/files/fstab.init b/package/block-mount/files/fstab.init
index f54051ebb7..4f1f6fb7a0 100644
--- a/package/block-mount/files/fstab.init
+++ b/package/block-mount/files/fstab.init
@@ -85,4 +85,8 @@ stop() {
swapoff -a
}
-
+restart() {
+ stop
+ sleep 1
+ start
+}