Automatically making grub beep at boot
Hello,
A nice feature for blind people would be to make grub beep at boot. I
deferred adding the support in d-i so far because I hadn't investigated
how to properly modify grub's behavior. It happens that recently
Jean-Philippe Mengual asked grub's maintainer for the feature, and the
answer was that it was actually very easy to implement: it boils down to
the attached two patches.
Is it fine for Jessie or do we prefer to wait for Stretch?
Samuel
diff --git a/debian/brltty-udeb.prebaseconfig b/debian/brltty-udeb.prebaseconfig
index 49e482c..94441db 100644
--- a/debian/brltty-udeb.prebaseconfig
+++ b/debian/brltty-udeb.prebaseconfig
@@ -81,6 +81,11 @@ if [ -r $pid ] && kill -0 `cat $pid`; then
fi
fi
+ # Grub
+ mkdir -p /target/etc/default/grub.d
+ echo 'GRUB_INIT_TUNE="480 440 1"' > /target/etc/default/grub.d/brltty.cfg
+ [ -x /target/usr/sbin/update-grub ] && /bin/in-target /usr/sbin/update-grub || true
+
# Gnome 2
/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/applications/at/screen_reader_enabled true" Debian-gdm || true
diff --git a/finish-install.d/07speakup b/finish-install.d/07speakup
index 9d6d5bd..fdfee4e 100755
--- a/finish-install.d/07speakup
+++ b/finish-install.d/07speakup
@@ -6,6 +6,11 @@ if [ -n "$(lsmod | grep ^speakup_)" ]; then
. /usr/share/debconf/confmodule
+ # Grub
+ mkdir -p /target/etc/default/grub.d
+ echo 'GRUB_INIT_TUNE="480 440 1"' > /target/etc/default/grub.d/brltty.cfg
+ [ -x /target/usr/sbin/update-grub ] && /bin/in-target /usr/sbin/update-grub || true
+
# Gnome 2
/bin/in-target su -s /bin/sh -c "gconftool-2 --type bool --set /desktop/gnome/applications/at/screen_reader_enabled true" Debian-gdm || true
Reply to: