Installationsskript des Paketes "wvdial"
# it is ok that only root can configure wvdial, but uucp+dialout users
# must be able to dial:
chmod 640 etc/wvdial.conf
chown root.dialout etc/wvdial.conf
chmod -R 750 var/lib/wvdial
chown -R root.dialout var/lib/wvdial
chmod -R 770 var/lib/wvdial/tmp
chown -R root.dialout var/lib/wvdial/tmp
chmod -R 750 usr/share/wvdial
chown -R root.dialout usr/share/wvdial
chmod 750 usr/bin/cfconv.wvdial
chown root.dialout usr/bin/cfconv.wvdial
chmod 750 usr/bin/wvdial.tcl
chown root.dialout usr/bin/wvdial.tcl
chmod 750 usr/bin/wvdial-write-section
chown root.dialout usr/bin/wvdial-write-section
chmod 640 usr/share/wvdial/config.in
chown root.dialout usr/share/wvdial/config.in
if [ -f etc/wvdial.conf.rpmsave ]; then
echo "Updating /etc/wvdial.conf..., backup is in /etc/wvdial.conf.rpmsave."
usr/share/wvdial/recover-defaultsettings etc/wvdial.conf.rpmsave ||
echo "Error recovering saved config from /etc/wvdial.conf.rpmsave"
else
if [ -f etc/wvdial.conf.rpmbackup ]; then
echo "Recovering /etc/wvdial.conf Dialer from /etc/wvdial.conf.rpmbackup..."
usr/share/wvdial/recover-defaultsettings etc/wvdial.conf.rpmbackup ||
echo "Error recovering saved config from /etc/wvdial.conf.rpmbackup"
old etc/wvdial.conf.rpmbackup ||
echo "Error backing up /etc/wvdial.conf.rpmbackup"
fi
fi
echo "Updating etc/rc.config..."
if [ -x bin/fillup ] ; then
bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.wvdial
else
echo "ERROR: fillup not found. This should not happen. Please compare"
echo "etc/rc.config and var/adm/fillup-templates/rc.config.wvdial and"
echo "update by hand."
fi
# Just if this package is put and installed on odler dist with an unpatched
# pppd(It's pppd not adviseable to check this by running pppd):
#if zgrep -q replacedefaultroute usr/man/man8/pppd.8.gz 2>/dev/null
# zgrep isn't in the yast2 instsys and the check is not really required.
#then
# grep -q replacedefaultroute $RPM_BUILD_ROOT/etc/ppp/peers/wvdial ||
# echo replacedefaultroute >>$RPM_BUILD_ROOT/etc/ppp/peers/wvdial
#fi
(c) SuSE - Letzte Änderung: 31.03.2000 12:37;