close 36603 close 41191 close 56074 close 62727 thanks A new version of diald has been uploaded (0.99.4-1) to Debian's unstable distribution (woody). Besides the wonders of the new version itself, the following has been added to the packaging: - pppconfig support; uses debconf to pick a pppconfig profile to use for autodialing. Translation for non-Debian types: no more manual configuration necessary! - dctrl now saves its state when exiting and reloads it when loaded again (per-user settings). - ethertap support really works "out of the box" w/o needing to play with modules or device files. Also, a few bugs have been fixed, and some documentation as well. Enjoy! http://www.debian.org/Packages/unstable/net/diald.html (Also, I have attached the dctrl-save-state patch, so it can get included upstream if desired. Thanks to [EMAIL PROTECTED] for submitting it.) --- /usr/bin/dctrl Tue May 25 18:38:05 1999 +++ bin/dctrl Mon Jul 12 19:26:00 1999 @@ -5,12 +5,18 @@ # Get the fifo through the debian /etc/diald/diald.options # Modified from the original for Debian by Philippe Troin <[EMAIL PROTECTED]> set debian_diald_conf "/etc/diald/diald.options" -if [catch { exec egrep {^[^#]*fifo} $debian_diald_conf | sed -e {s/^ *fifo *//} } grep_results] { +if [catch { exec egrep {^[^\#]*fifo} $debian_diald_conf | sed -e {s/^ *fifo *//} } +grep_results] { set diald_FIFO "" } else { set diald_FIFO $grep_results } +set user_config_file "$env(HOME)/.dctrl" + +if [ file isfile $user_config_file ] { + source $user_config_file +} + # User tunable parameters set imagepath "/usr/share/diald" set diald_TITLE "" @@ -1093,6 +1099,42 @@ } wm geometry . + + write_config_file +} + +proc write_config_file {} { + global user_config_file + global toolbar dstatus tload gload pqueue dlog + + set config_file [ open $user_config_file "w" ] + + if {[ info exists toolbar ]} { + puts $config_file "set toolbar $toolbar" + } + + if {[ info exists dstatus ]} { + puts $config_file "set dstatus $dstatus" + } + + if {[ info exists tload ]} { + puts $config_file "set tload $tload" + } + + if {[ info exists gload ]} { + puts $config_file "set gload $gload" + } + + if {[ info exists pqueue ]} { + puts $config_file "set pqueue $pqueue" + } + + if {[ info exists dlog ]} { + puts $config_file "set dlog $dlog" + } + + flush $config_file + close $config_file } repack - To unsubscribe from this list: send the line "unsubscribe linux-diald" in the body of a message to [EMAIL PROTECTED]
