diff --git a/build.sh b/build.sh index 3c72c80..0885ea8 100755 --- a/build.sh +++ b/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 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 "Binary: ${BUSYBOX_DIR}/busybox" echo "Shared library: ${BUSYBOX_DIR}/libbusybox.so" diff --git a/config/.config b/config/.config index 88c2f28..eddb3f3 100644 --- a/config/.config +++ b/config/.config @@ -832,7 +832,7 @@ CONFIG_UBIRSVOL=y CONFIG_UBIUPDATEVOL=y CONFIG_UBIRENAME=y # CONFIG_VOLNAME is not set -# CONFIG_WATCHDOG is not set +CONFIG_WATCHDOG=y # # Networking Utilities