Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: John_Abell on February 05, 2004, 10:36:36 AM

Title: Altering dial-up times
Post by: John_Abell on February 05, 2004, 10:36:36 AM
I want to change the hours that my version 5.1.2 SME dials the ISP, as they start charging excess fees after 5.30pm.  I can't see where this can be altered - does anyone know?
thanks
John Abell
jabell@ahc.sa.gov.au
Title: Altering dial-up times
Post by: raem on February 05, 2004, 01:57:04 PM
Do a search on diald.filter and go way back to year 2000.

This extract may be suitable

http://www.e-smith.org/bboard/read.php?f=3&i=1183&t=1162
RE: Office Time - Changing
Author: Damien Curtain (damien_AT_pagefault.org)

Date: 10-29-00 17:59

Charlie Brady wrote:
Russell Tiedt wrote:
>
> > Where in the templates does one change the time for office
> > hours from 08:00 - 18:00, to 07:00 - 19:00?
>
> You need to change the template for /etc/diald.filter.

you need to do something like

mkdir -p /etc/e-smith/templates-custom/etc

cp -a /etc/e-smith/templates/etc/diald.filter \
/etc/e-smith/templates-custom/etc/.

then edit the file, eg.

cat /etc/e-smith/templates/etc/diald.filter/template-begin | sed -e 's/8:00:00 17:59:59/7:00:00 18:59:59/' –e 's/7:59:59/6:59:59/' -e 's/18:00:00/19:00:00/' > /etc/e-smith/templates-custom/etc/diald.filter/template-begin

and then

/sbin/e-smith/expand-template /etc/diald.filter

--
Damien
Title: dialup connect times
Post by: John Abell on February 17, 2004, 09:19:44 AM
I read a posting from Ray Mitchell with details for editing the template-begin file, but in my search of esmith5.6 all instances of this file is blank, leading me to think it is not being used. The other link referred to no longer exists so I couldn't obtain further info there.
The cat statement made little sense to me in the absence of a 'live' template-begin file to look at, so I would really appreciate it Ray if you are still reading these posts, if you can provide further clarification of what the cat statement is actually doing, or perhaps some other source of info on how to configure the times.
The ISP we connect to drops the line at 5:30pm here in adelaide, and then dials up again at extra cost to us.
cheers
john Abell
SixthCreek Conservation Group.
Title: Altering dial-up times
Post by: raem on February 17, 2004, 10:01:20 AM
Try this then

mkdir -p /etc/e-smith/templates-custom/etc

cp -a /etc/e-smith/templates/etc/diald.filter \
/etc/e-smith/templates-custom/etc/

cd /etc/e-smith/templates-custom/etc/diald.filter

pico 20office

change the times near the beginning to suit your needs on the line that says

    $OUT .= "restrict 8:00:00 17:59:59 1-5 * *\n";

do the same to
40outside
and
60weekend

and then

/sbin/e-smith/expand-template /etc/diald.filter

See if that works for you

Regs
Ray