wiper.sh doesn't find rootdev running openSUSE 11.3
Brought to you by:
ideguy
hdparm - version v9.36
Linux/openSUSE 11.3
OpenSUSE is missing /usr/sbin/rdev (Like Redhat). Script wiper.sh tries to recognize root devie "/" using this tool. In line 259/260 there's a workaround for Redhat but this isn't working for openSUSE. For that you can aquire the root device by reading /etc/mtab (which ou could within most distributions, I guess).
Proposed patch.diff for /sbin/wiper.sh:
261,262d260
< elif [ "$RDEV" == "" -a `$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` != "" ]; then
< rootdev=`$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` ## openSUSE
Please bring it upstream.
If you can reformat that patch properly, I'll happily apply it.
But right now, I don't know exactly WHERE in wiper.sh it belongs,
because you didn't give any diff "context".
Cheers