prevent stick become brick

add `chmod +x /bin -R` before repacking
This commit is contained in:
Anime4000 2022-03-06 03:00:20 +08:00 committed by GitHub
parent 82ae8a07e7
commit 74ca55a3e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,10 @@ fi
echo "RTL9601C1 Emulator is Running!"
chroot "$CHDIR" qemu-mips-static "/bin/sh"
echo "User end QEMU..."
echo "User End QEMU..."
echo "chmod +x /bin folder, prevent stick become brick!"
chmod +x "$CHDIR/bin" -R
echo "Unmounting..."
rm -rf "$CHDIR/usr/bin"
@ -105,4 +108,4 @@ echo ""
echo "Anime4000 firmware test script, https://github.com/Anime4000/RTL9601C1"
echo ""
exit 0
exit 0