Modem Reconnect
Posted by Jay Downloader, Last modified by raztoki raztoki on 02 May 2015 09:52 AM
|
|
Modem ReconnectThe modem reconnect works different for each operating system WindowsFor windows, the reconnect can be performed with the integrated batch reconnect rasdial "CONECTIONNAME" /disconnect Enter “cmd /c” as interpreter Linux and MACOSThe tools sudo su batch reconnect to perform the following commands. sudo poff dsl-provider Special MACOS1st Script by buggsy(BoardMember):#!/usr/bin/osascript tell application "System Events" tell network preferences tell current location set aPPPoEService to a reference to (first service whose kind is 10) if exists aPPPoEService then set isConnected to connected of current configuration of aPPPoEService if isConnected then disconnect aPPPoEService end if end tell end tell end tell delay 10 tell application "System Events" tell network preferences tell current location set aPPPoEService to a reference to (first service whose kind is 10) if exists aPPPoEService then connect aPPPoEService end tell end tell end tell -save as /usr/local/bin/reconnectscript -chmod +x /usr/local/bin/reconnectscript -in JDownloader: Reconnection -> External -> Command: /usr/local/bin/reconnectscript 2nd Script by samhl(BoardMember) tell application "System Events" tell network preferences disconnect service "verbindungsname" delay 2 connect service "verbindungsname" end tell end tell -place script in Settings-Reconnect-Batch, use /bin/osascript as interpreter -replace verbindungsname with name of your connection -in systemcontrol you must enable access for help tools (do not have a mac, how its called really?) | |
|