I have many installs of incrediblefax and I would like to write .sh script that can help me to run it instead of editing all over the configuration of each modems.
A script that can modify hyla.conf and config.ttyIAX0 to config.ttyIAX3
1) There are 2 hyla.conf and config.ttyIAXs located in /etc/hylafax and /var/spool/etc/hylafax
Which directory is to be chosen to modify? (or it has to be both)?
2) hyla.conf
I would like to modify the lines to:
3) config.ttyIAX0 to config.ttyIAX3
---------------------------------------------------------------------------------------------------------
I can think of using for example
But echo means write and doesn't replace the line..
Maybe to use sed -i ? what will be the syntax?
A script that can modify hyla.conf and config.ttyIAX0 to config.ttyIAX3
1) There are 2 hyla.conf and config.ttyIAXs located in /etc/hylafax and /var/spool/etc/hylafax
Which directory is to be chosen to modify? (or it has to be both)?
2) hyla.conf
I would like to modify the lines to:
Code:
JobFmt: "%-5j %1a %15o %30M %-15.15e %5P %5D %5i %7z %.25s"
RcvFmt: "%7o %-10t %-25s %-20f %5p %1z %-40e"
PageSize: na-let
VRes: 196
3) config.ttyIAX0 to config.ttyIAX3
| Lines | DEFAULT VALUES | TO MODIFY |
| CountryCode | 1 | Add # in front of the line |
| Area code | customized | Add # in front of the line |
| FAXNumber | +1.800.555.1212 | xxx-xxx-xxx |
| LocalIdentifier | "IncredibleFax" | "IncFax Mod" |
| TagLineFormat | "From %%l|%c|Page %%P of %%T" | "DE %%l < %%n >|%Y-%m-%d %l:%M %p|Page %%P de %%T" |
---------------------------------------------------------------------------------------------------------
I can think of using for example
echo "
#CountryCode
FAXNumber: xxx-xxx-xxxx
"
etc..
But echo means write and doesn't replace the line..
Maybe to use sed -i ? what will be the syntax?