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.
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.