2018-01-08 13:28:15 +00:00
|
|
|
This file concerns the usage of scripts with wmisdn.
|
2017-09-13 20:16:49 +00:00
|
|
|
----------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
NOTE: The wmisdn scripting is ONLY for ADVANCED unix users. I can't give any
|
|
|
|
support for user-made scripts.
|
|
|
|
|
2018-01-08 13:28:15 +00:00
|
|
|
|
|
|
|
Ok, if you're still here, then you know what you're doing, so I won't go into
|
|
|
|
details explaining well known things about Linux.
|
2017-09-13 20:16:49 +00:00
|
|
|
|
|
|
|
As of version 1.8, wmisdn can use scripts to control the connection instead of
|
|
|
|
direct ioctl calls. If you want to use scripts, then put the "-usescripts"
|
|
|
|
option on the command line. The three files used by wmisdn are
|
|
|
|
|
|
|
|
wmisdn-up
|
|
|
|
wmisdn-down
|
|
|
|
wmisdn-scriptmodes
|
|
|
|
|
|
|
|
They must be located in /etc/isdn/, or in a directory specified by the
|
|
|
|
"-path" command line option.
|
|
|
|
|
|
|
|
The first two are called when the green resp. yellow lamp is pressed. These
|
2018-01-08 13:28:15 +00:00
|
|
|
two scripts recieve two parameters. The first one is the name of the
|
|
|
|
ippp-device and the second is the script mode.
|
2017-09-13 20:16:49 +00:00
|
|
|
|
|
|
|
The script mode is an integer, which corresponds to a line in the file
|
|
|
|
wmisdn-scriptmodes. Every line in this file defines one script mode - the first
|
|
|
|
line is mode 0, the second - mode 1, and so on. The contents of each line is
|
|
|
|
used as a user-friendly name for the script mode and is displayed on the info
|
|
|
|
window. The script modes are changed by pressing the green control lamp with
|
|
|
|
the middle mouse button.
|
|
|
|
|
|
|
|
A sample wmisdn-scriptmodes might look like
|
|
|
|
|
|
|
|
go online
|
|
|
|
check mail
|
|
|
|
update web-page
|
|
|
|
|
|
|
|
where the wmisdn-up script uses the second command line argument to differ
|
|
|
|
between these modes (0,1 or 2 resp.). The -up/-down scripts should contain
|
|
|
|
the line
|
2018-01-08 13:28:15 +00:00
|
|
|
/usr/sbin/isdnctrl dial $1
|
2017-09-13 20:16:49 +00:00
|
|
|
or
|
|
|
|
/usr/sbin/isdnctrl hangup $1
|
|
|
|
respectively.
|
|
|
|
|
2018-01-08 13:28:15 +00:00
|
|
|
I might consider putting some scripts on my web-page in the near future. I'd
|
2017-09-13 20:16:49 +00:00
|
|
|
also wellcome any user-made working scripts.
|
|
|
|
|
|
|
|
Good luck and have fun!
|
|
|
|
Tasho
|