|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
#jinja2:lstrip_blocks: True
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<plist version="1.0">
|
|
|
@ -12,8 +13,8 @@
|
|
|
|
<integer>1</integer>
|
|
|
|
<integer>1</integer>
|
|
|
|
<key>OnDemandRules</key>
|
|
|
|
<key>OnDemandRules</key>
|
|
|
|
<array>
|
|
|
|
<array>
|
|
|
|
{% if algo_ondemand_wifi_exclude|b64decode != '_null' %}
|
|
|
|
{% if algo_ondemand_wifi_exclude|b64decode != '_null' %}
|
|
|
|
{% set WIFI_EXCLUDE_LIST = (algo_ondemand_wifi_exclude|b64decode|string).split(',') %}
|
|
|
|
{% set WIFI_EXCLUDE_LIST = (algo_ondemand_wifi_exclude|b64decode|string).split(',') %}
|
|
|
|
<dict>
|
|
|
|
<dict>
|
|
|
|
<key>Action</key>
|
|
|
|
<key>Action</key>
|
|
|
|
<string>Disconnect</string>
|
|
|
|
<string>Disconnect</string>
|
|
|
@ -21,20 +22,19 @@
|
|
|
|
<string>WiFi</string>
|
|
|
|
<string>WiFi</string>
|
|
|
|
<key>SSIDMatch</key>
|
|
|
|
<key>SSIDMatch</key>
|
|
|
|
<array>
|
|
|
|
<array>
|
|
|
|
{% for network_name in WIFI_EXCLUDE_LIST %}
|
|
|
|
{% for network_name in WIFI_EXCLUDE_LIST %}
|
|
|
|
<string>{{ network_name|e }}</string>
|
|
|
|
<string>{{ network_name|e }}</string>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</array>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<dict>
|
|
|
|
<dict>
|
|
|
|
<key>Action</key>
|
|
|
|
<key>Action</key>
|
|
|
|
{% if algo_ondemand_wifi %}
|
|
|
|
{% if algo_ondemand_wifi %}
|
|
|
|
<string>Connect</string>
|
|
|
|
<string>Connect</string>
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
<string>Disconnect</string>
|
|
|
|
<string>Disconnect</string>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<key>InterfaceTypeMatch</key>
|
|
|
|
<key>InterfaceTypeMatch</key>
|
|
|
|
<string>WiFi</string>
|
|
|
|
<string>WiFi</string>
|
|
|
|
<key>URLStringProbe</key>
|
|
|
|
<key>URLStringProbe</key>
|
|
|
@ -42,11 +42,11 @@
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<dict>
|
|
|
|
<key>Action</key>
|
|
|
|
<key>Action</key>
|
|
|
|
{% if algo_ondemand_cellular %}
|
|
|
|
{% if algo_ondemand_cellular %}
|
|
|
|
<string>Connect</string>
|
|
|
|
<string>Connect</string>
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
<string>Disconnect</string>
|
|
|
|
<string>Disconnect</string>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<key>InterfaceTypeMatch</key>
|
|
|
|
<key>InterfaceTypeMatch</key>
|
|
|
|
<string>Cellular</string>
|
|
|
|
<string>Cellular</string>
|
|
|
|
<key>URLStringProbe</key>
|
|
|
|
<key>URLStringProbe</key>
|
|
|
@ -57,7 +57,6 @@
|
|
|
|
<string>Disconnect</string>
|
|
|
|
<string>Disconnect</string>
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</array>
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<key>AuthenticationMethod</key>
|
|
|
|
<key>AuthenticationMethod</key>
|
|
|
|
<string>Certificate</string>
|
|
|
|
<string>Certificate</string>
|
|
|
|