diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-12-19 09:41:28 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-12-19 09:41:28 +0000 |
commit | 50983767b37ee20c8bb62553d72abfee4bb800dd (patch) | |
tree | e68b6f1f97243afa5db6b876eba1267e4360dc24 /package/block-mount/files | |
parent | 5f82aa4d15a885c5b211a565adf6a95ba66c374e (diff) | |
download | upstream-50983767b37ee20c8bb62553d72abfee4bb800dd.tar.gz upstream-50983767b37ee20c8bb62553d72abfee4bb800dd.tar.bz2 upstream-50983767b37ee20c8bb62553d72abfee4bb800dd.zip |
block-mount: add a delay between sto pand start in fstab init restart action, fixes a lock race condition observed in VirtualBox
SVN-Revision: 34784
Diffstat (limited to 'package/block-mount/files')
-rw-r--r-- | package/block-mount/files/fstab.init | 6 |
1 files changed, 5 insertions, 1 deletions
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 +} |