From fb60fbd1a436403488a2e6e7fea91a5c12efed9e Mon Sep 17 00:00:00 2001 From: jow Date: Wed, 19 Dec 2012 09:41:28 +0000 Subject: 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 --- package/block-mount/files/fstab.init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/block-mount/files') 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 +} -- cgit v1.2.3