/etc/init.d/brltty checks md5sum when not necessary
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
brltty (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: brltty
In Ubuntu 9.04, /etc/init.d/brltty will check the md5sum of /etc/brltty.conf prior to checking existence and without reason.
This is a wasted operation during boot.
recommend removing this line:
BRLTTY_
And changing this block of code:
-------
# /etc/brltty.conf may need to be propagated from the initramfs. (This is a
# pretty awful hack.)
if [ -e /dev/.initramfs
if [ -e /etc/brltty.conf ] && [ "$BRLTTY_
mv /etc/brltty.conf /etc/brltty.
mv /dev/.initramfs
fi
sed -i -e 's/^RUN_
fi
-------
to:
-------
# /etc/brltty.conf may need to be propagated from the initramfs. (This is a
# pretty awful hack.)
if [ -e /dev/.initramfs
if [ -e /etc/brltty.conf ] && [ "$(md5sum /etc/brltty.conf)" = "$BRLTTY_
mv /etc/brltty.conf /etc/brltty.
mv /dev/.initramfs
fi
sed -i -e 's/^RUN_
fi
-------
In addition to that, I get a "command not found" error for md5sum. Probably because I have /usr as a separate partition which is not mounted yet.