2.4.1-3 has:
# re process nut.conf MODE so that it can be sourced
NUT_MODE=`sed -ne 's#^ *MODE = *\(.*\)$#\1#p' /etc/nut/nut.conf`
sed "s/^MODE\(.*\)/MODE=$NUT_MODE/" /etc/nut/nut.conf >
/etc/nut/nut.conf.new
mv /etc/nut/nut.conf.new /etc/nut/nut.conf
Those lines are buggy.
I suggest:
# re process nut.conf MODE so that it can be sourced
NUT_MODE=`grep MODE /etc/nut/nut.conf | tr -d " "`
sed "s/^.*MODE.*/$NUT_MODE/" /etc/nut/nut.conf \
> /etc/nut/nut.conf.new
mv /etc/nut/nut.conf.new /etc/nut/nut.conf
--
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]