Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Create-NewReleases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:

# 7--- Publish a GitHub Release with auto-generated notes
- name: Create Release with Automated Release Notes
uses: softprops/action-gh-release@v2.2.2
uses: softprops/action-gh-release@v2.3.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.nextver.outputs.tag }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# YazFi - enhanced AsusWRT-Merlin Guest WiFi Networks

## v4.4.7
### Updated on 2025-Jun-18
## v4.4.8
### Updated on 2025-Jul-20
## About
Feature expansion of guest WiFi networks on AsusWRT-Merlin, including, but not limited to:

Expand Down
51 changes: 30 additions & 21 deletions YazFi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
## Guest Network DHCP script and for ##
## AsusWRT-Merlin firmware ##
###################################################
# Last Modified: 2025-Jun-18
# Last Modified: 2025-Jul-18
#--------------------------------------------------

###### Shellcheck directives ######
Expand All @@ -41,10 +41,10 @@
### Start of script variables ###
readonly SCRIPT_NAME="YazFi"
readonly SCRIPT_CONF="/jffs/addons/$SCRIPT_NAME.d/config"
readonly YAZFI_VERSION="v4.4.7"
readonly SCRIPT_VERSION="v4.4.7"
readonly SCRIPT_VERSTAG="25061807"
SCRIPT_BRANCH="master"
readonly YAZFI_VERSION="v4.4.8"
readonly SCRIPT_VERSION="v4.4.8"
readonly SCRIPT_VERSTAG="25071823"
SCRIPT_BRANCH="develop"
SCRIPT_REPO="https://raw.githubusercontent.com/AMTM-OSR/$SCRIPT_NAME/$SCRIPT_BRANCH"
readonly SCRIPT_DIR="/jffs/addons/$SCRIPT_NAME.d"
readonly USER_SCRIPT_DIR="$SCRIPT_DIR/userscripts.d"
Expand All @@ -64,6 +64,8 @@ readonly PASS="\\e[32m"
readonly BOLD="\\e[1m"
readonly SETTING="${BOLD}\\e[36m"
readonly CLEARFORMAT="\\e[0m"
readonly CLRct="\e[0m"
readonly MGNTct="\e[1;35m"
### End of output format variables ###

### Start of router environment variables ###
Expand All @@ -75,7 +77,8 @@ readonly scriptVersRegExp="v[0-9]{1,2}([.][0-9]{1,2})([.][0-9]{1,2})"
readonly webPageFileRegExp="user([1-9]|[1-2][0-9])[.]asp"
readonly webPageLineTabExp="\{url: \"$webPageFileRegExp\", tabName: "
readonly webPageLineRegExp="${webPageLineTabExp}\"$SCRIPT_NAME\"\},"
readonly scriptVERINFO="[${SCRIPT_VERSION}_${SCRIPT_VERSTAG}, Branch: $SCRIPT_BRANCH]"
readonly branchx_TAG="Branch: $SCRIPT_BRANCH"
readonly version_TAG="${SCRIPT_VERSION}_${SCRIPT_VERSTAG}"

# Give higher priority to built-in binaries #
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH"
Expand Down Expand Up @@ -741,7 +744,7 @@ _Firmware_Support_Check_()
Print_Output true "Please update to benefit from $SCRIPT_NAME detecting wireless restarts" "$WARN"
elif [ "$fwInstalledBaseVers" -eq 3006 ]
then
FW_NOT_Supported=true
FW_NOT_Supported=true ; echo
Print_Output true "F/W ${fwInstalledBranchVer}.* version detected. YazFi is NOT supported on this firmware." "$ERR"
fi

Expand Down Expand Up @@ -3828,9 +3831,9 @@ Menu_Uninstall()
flock -x "$FD"
Get_WebUI_Page "$SCRIPT_DIR/YazFi_www.asp"
if [ -n "$MyWebPage" ] && \
[ "$MyWebPage" != "NONE" ] && \
[ -f "$TEMP_MENU_TREE" ]
then
[ "$MyWebPage" != "NONE" ] && \
[ -f "$TEMP_MENU_TREE" ]
then
sed -i "\\~$MyWebPage~d" "$TEMP_MENU_TREE"
rm -f "$SCRIPT_WEBPAGE_DIR/$MyWebPage"
rm -f "$SCRIPT_WEBPAGE_DIR/$(echo "$MyWebPage" | cut -f1 -d'.').title"
Expand All @@ -3841,7 +3844,7 @@ Menu_Uninstall()
rm -f "$SCRIPT_DIR/YazFi_www.asp" 2>/dev/null

while true
do
do
printf "\n${BOLD}Do you want to delete %s configuration file(s)? (y/n)${CLEARFORMAT} " "$SCRIPT_NAME"
read -r confirm
case "$confirm" in
Expand Down Expand Up @@ -3870,9 +3873,9 @@ Menu_Uninstall()
##----------------------------------------##
Show_About()
{
printf "About ${MGNTct}${SCRIPT_VERS_INFO}${CLRct}\n"
cat <<EOF
About $SCRIPT_VERS_INFO
$SCRIPT_NAME is a Feature expansion of Guest WiFi networks on
$SCRIPT_NAME is a feature expansion of Guest WiFi networks on
AsusWRT-Merlin, including SSID -> VPN, separate subnets per guest
network, pinhole access to LAN resources (e.g. DNS) and more!

Expand All @@ -3895,8 +3898,8 @@ EOF
##----------------------------------------##
Show_Help()
{
printf "HELP ${MGNTct}${SCRIPT_VERS_INFO}${CLRct}\n"
cat <<EOF
HELP $SCRIPT_VERS_INFO
Available commands:
$SCRIPT_NAME about explains functionality
$SCRIPT_NAME update checks for updates
Expand All @@ -3911,8 +3914,8 @@ Available commands:
$SCRIPT_NAME check check if $SCRIPT_NAME configuration is still in effect and re-apply if not
$SCRIPT_NAME userscripts run userscripts (if any have been created)
$SCRIPT_NAME rejectlogging toggle whether rejected packets are logged to syslog
$SCRIPT_NAME develop switch to development branch
$SCRIPT_NAME stable switch to stable branch
$SCRIPT_NAME develop switch to development branch version
$SCRIPT_NAME stable switch to stable/production branch version
EOF
printf "\n"
}
Expand All @@ -3923,19 +3926,25 @@ EOF
# Make the one call needed to load module #
modprobe xt_comment

if [ "$SCRIPT_BRANCH" != "develop" ]
then SCRIPT_VERS_INFO=""
else SCRIPT_VERS_INFO="$scriptVERINFO"
if [ "$SCRIPT_BRANCH" = "master" ]
then SCRIPT_VERS_INFO="[$branchx_TAG]"
else SCRIPT_VERS_INFO="[$version_TAG, $branchx_TAG]"
fi

##----------------------------------------##
## Modified by Martinski W. [2025-Jun-18] ##
## Modified by Martinski W. [2025-Jul-15] ##
##----------------------------------------##
if [ $# -eq 0 ] || [ -z "$1" ]
then
if ! _Firmware_Support_Check_
then
printf "${ERR}Exiting...${CLEARFORMAT}\n"
if [ -d "$SCRIPT_DIR" ]
then
printf "${SETTING}To uninstall use this command: ${CLRct}"
printf "${MGNTct}/jffs/scripts/$SCRIPT_NAME uninstall${CLRct}\n\n"
fi
PressEnter
printf "\n${ERR}Exiting...${CLRct}\n\n"
Clear_Lock
exit 1
fi
Expand Down
Loading