mirror of https://github.com/OpenIPC/firmware.git
[no ci] Update automount.sh (#1826)
parent
e422eb87ea
commit
ceac5f9a83
|
@ -13,7 +13,7 @@ my_umount() {
|
||||||
my_mount() {
|
my_mount() {
|
||||||
mkdir -p "${destdir}/$1" || exit 1
|
mkdir -p "${destdir}/$1" || exit 1
|
||||||
|
|
||||||
if ! mount -t auto -o sync "/dev/$1" "${destdir}/$1"; then
|
if ! mount -t auto "/dev/$1" "${destdir}/$1"; then
|
||||||
# failed to mount, clean up mountpoint
|
# failed to mount, clean up mountpoint
|
||||||
rmdir "${destdir}/$1"
|
rmdir "${destdir}/$1"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue