Implement compatibility for applet links in /bin directory by mirroring sbin applet links. Update configuration to enable watchdog support.
This commit is contained in:
12
build.sh
12
build.sh
@@ -109,6 +109,18 @@ for f in "${libbusybox_candidates[@]}"; do
|
|||||||
ln -sf "$(basename "${f}")" "${INSTALL_DIR}/lib/libbusybox.so" 2>/dev/null || true
|
ln -sf "$(basename "${f}")" "${INSTALL_DIR}/lib/libbusybox.so" 2>/dev/null || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Compatibility layout: mirror sbin applet links into /bin
|
||||||
|
# so environments expecting everything under /bin (like the target console)
|
||||||
|
# can resolve applets such as /bin/watchdog.
|
||||||
|
if [ -d "${INSTALL_DIR}/sbin" ] && [ -d "${INSTALL_DIR}/bin" ]; then
|
||||||
|
shopt -s nullglob
|
||||||
|
for s in "${INSTALL_DIR}/sbin"/*; do
|
||||||
|
name="$(basename "${s}")"
|
||||||
|
ln -sf "busybox" "${INSTALL_DIR}/bin/${name}"
|
||||||
|
done
|
||||||
|
shopt -u nullglob
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Build completed successfully."
|
echo "Build completed successfully."
|
||||||
echo "Binary: ${BUSYBOX_DIR}/busybox"
|
echo "Binary: ${BUSYBOX_DIR}/busybox"
|
||||||
echo "Shared library: ${BUSYBOX_DIR}/libbusybox.so"
|
echo "Shared library: ${BUSYBOX_DIR}/libbusybox.so"
|
||||||
|
|||||||
@@ -832,7 +832,7 @@ CONFIG_UBIRSVOL=y
|
|||||||
CONFIG_UBIUPDATEVOL=y
|
CONFIG_UBIUPDATEVOL=y
|
||||||
CONFIG_UBIRENAME=y
|
CONFIG_UBIRENAME=y
|
||||||
# CONFIG_VOLNAME is not set
|
# CONFIG_VOLNAME is not set
|
||||||
# CONFIG_WATCHDOG is not set
|
CONFIG_WATCHDOG=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Networking Utilities
|
# Networking Utilities
|
||||||
|
|||||||
Reference in New Issue
Block a user