mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-15 00:01:23 +00:00
fix: Boot file
fix: Boot file
This commit is contained in:
+2
-3
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
[ -f "$STORAGE/boot.img" ] && return 0
|
||||
FILE="$STORAGE/boot.img"
|
||||
[ -f "$FILE" ] && return 0
|
||||
|
||||
TMP="/boot.img"
|
||||
rm -f "$TMP"
|
||||
@@ -28,8 +29,6 @@ if ((SIZE<100000)); then
|
||||
error "Invalid ISO file: Size is smaller than 100 KB" && exit 62
|
||||
fi
|
||||
|
||||
FILE="$STORAGE/boot.img"
|
||||
|
||||
mv -f "$TMP" "$FILE"
|
||||
|
||||
{ set +x; } 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user