Add support custom LuCI menu and other updates

This commit is contained in:
remittor
2022-08-17 15:49:18 +03:00
parent 7288d5f119
commit ddd8c26265
6 changed files with 39 additions and 4 deletions

View File

@@ -46,6 +46,12 @@ if [ $( get_cfg_pkg_flag "$XDIR/.config" "dnsmasq-full" ) = "y" ]; then
sed -i '/CONFIG_PACKAGE_dnsmasq=y/d' $XDIR/.config
fi
rm -f $XDIR/luci_aux_menu.json
TARGET_MENU="$XDIR"/"$XTARGET""_menu.json"
if [ -f "$TARGET_MENU" ]; then
cp -f "$TARGET_MENU" $XDIR/luci_aux_menu.json
fi
if [ -z "$MAKE_JOBS" ]; then
MAKE_JOBS=$( grep processor /proc/cpuinfo | tail -n 1 | awk '{print $3}' )
fi