Skip to content

Commit

Permalink
remove support for older macos releases (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
locus313 authored Dec 1, 2023
1 parent 759ca6f commit acadbbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wireless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ do
fi
done

# For OSX 10.7 (#11) Lion and OSX 10.8 (#12) Mountain Lion and 10.9 (#13) Mavericks, Yosemite (#14), El Capitan (#15), Sierra (#16), High Sierra (#17), Mojave (#18), Catalina (#19), Big Sur (#20), Monterey (#21), Ventura (#22)
if [ "$OSVERSION" == "11" ] || [ "$OSVERSION" == "12" ] || [ "$OSVERSION" == "13" ] || [ "$OSVERSION" == "14" ] || [ "$OSVERSION" == "15" ] || [ "$OSVERSION" == "16" ] || [ "$OSVERSION" == "17" ] || [ "$OSVERSION" == "18" ] || [ "$OSVERSION" == "19" ] || [ "$OSVERSION" == "20" ] || [ "$OSVERSION" == "21" ] || [ "$OSVERSION" == "22" ]; then
# For Monterey (#21), Ventura (#22)
if [ "$OSVERSION" == "21" ] || [ "$OSVERSION" == "22" ]; then
if [ $IPFOUND ]; then
/usr/sbin/networksetup -setairportpower "$WIFIINTERFACES" off || exit 1
echo "Turning OFF wireless on card $WIFIINTERFACES."
Expand Down

0 comments on commit acadbbb

Please sign in to comment.