Comment 31 for bug 68267

Revision history for this message
Jyrki Muukkonen (jvtm) wrote :

My earlier patch (in this thread), replaces the contents of validate_nice_value() function with a single line:

test "$1" -ge -20 -a "$1" -le 19 2> /dev/null

The patch I submitted was against the broken version (7.2.0ubuntu4 with "$? -ne 1"), but the same idea works with the not-so-broken one.

BTW, the other {x11-common,xserver-xorg}.{prerm,postinst} scripts have some evil looking expr's too.