https://bugzilla.novell.com/show_bug.cgi?id=751887
https://bugzilla.novell.com/show_bug.cgi?id=751887#c10
Marius Tomaschewski changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|mt@suse.com |
--- Comment #10 from Marius Tomaschewski 2012-03-14 15:36:14 UTC ---
It is quite simple -- the patch were not tested on systems without dhcp.
The dhcp_interfaces function does not find any interface with running dhcp
client and returns empty list and this means for savestate, read stdin:
+ case "$1" in
++ dhcp_interfaces
[...]
++ return 0
+ savestate dhcp_interfaces ''
+ '[' -n '' ']'
+ cat
See /usr/lib/pm-utils/functions:
savestate()
{
# $1 = name of state to save
# $2 (optional) State to save. If omitted, save stdin.
if [ -n "$2" ]; then
echo "$2" > "${STORAGEDIR}/state:$1"
else
cat > "${STORAGEDIR}/state:$1"
fi
}
That is, it has to be fixed to do this:
- savestate "dhcp_interfaces" "`dhcp_interfaces`"
+ _dhcp_interfaces=`dhcp_interfaces`
+ if test "$_dhcp_interfaces" != x ; then
+ savestate "dhcp_interfaces" "$_dhcp_interfaces"
+ fi
or this:
- savestate "dhcp_interfaces" "`dhcp_interfaces`"
+ dhcp_interfaces | savestate "dhcp_interfaces
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.