mirror of https://github.com/hak5/openwrt.git
block-mount: add a delay between sto pand start in fstab init restart action, fixes a lock race condition observed in VirtualBox
SVN-Revision: 34784lede-17.01
parent
5f82aa4d15
commit
50983767b3
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=block-mount
|
PKG_NAME:=block-mount
|
||||||
PKG_VERSION:=0.2.0
|
PKG_VERSION:=0.2.0
|
||||||
PKG_RELEASE:=9
|
PKG_RELEASE:=10
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
|
|
@ -85,4 +85,8 @@ stop() {
|
||||||
swapoff -a
|
swapoff -a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
restart() {
|
||||||
|
stop
|
||||||
|
sleep 1
|
||||||
|
start
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue