Skip to content

Commit e419dc5

Browse files
committed
feat: Enhance macOS Wireless Auto-Switch utility with improved logging, modular functions, and better error handling
1 parent 75f8b75 commit e419dc5

File tree

3 files changed

+566
-110
lines changed

3 files changed

+566
-110
lines changed
Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
1-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2-
<plist version="1.0">
3-
<dict>
4-
<key>Label</key>
5-
<string>com.computernetworkbasics.wifionoff</string>
6-
<key>ProgramArguments</key>
7-
<array>
8-
<string>/Library/Scripts/NetBasics/wireless.sh</string>
9-
</array>
10-
<key>WatchPaths</key>
11-
<array>
12-
<string>/Library/Preferences/SystemConfiguration</string>
13-
</array>
14-
</dict>
15-
</plist>
1+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<plist version="1.0">
3+
<dict>
4+
<key>Label</key>
5+
<string>com.computernetworkbasics.wifionoff</string>
6+
7+
<key>ProgramArguments</key>
8+
<array>
9+
<string>/Library/Scripts/NetBasics/wireless.sh</string>
10+
</array>
11+
12+
<key>WatchPaths</key>
13+
<array>
14+
<string>/Library/Preferences/SystemConfiguration</string>
15+
</array>
16+
17+
<key>UserName</key>
18+
<string>root</string>
19+
20+
<key>StandardOutPath</key>
21+
<string>/var/log/wireless-autoswitch.log</string>
22+
<key>StandardErrorPath</key>
23+
<string>/var/log/wireless-autoswitch.log</string>
24+
25+
<key>RunAtLoad</key>
26+
<false/>
27+
<key>KeepAlive</key>
28+
<false/>
29+
30+
<key>ThrottleInterval</key>
31+
<integer>5</integer>
32+
</dict>
33+
</plist>

0 commit comments

Comments
 (0)