Bug#833053: Syntax error in the script that setupcon outputs
Package: console-setup
Version: 1.148
Hi,
if you choose "Do not change the boot/kernel font" in debconf questions '"VGA"
has a traditional appearance and has medium coverage of ...', and outputs the
"/etc/console-setup/cached_setup_font.sh" such as the following.
#!/bin/sh
if ls /dev/fb* >/dev/null 2>/dev/null; then
for i in /dev/vcs[0-9]*; do
{
} < /dev/tty${i#/dev/vcs} > /dev/tty${i#/dev/vcs}
done
fi
mkdir -p /run/console-setup
> /run/console-setup/font-loaded
for i in /dev/vcs[0-9]*; do
{
printf '\033%%G'
} < /dev/tty${i#/dev/vcs} > /dev/tty${i#/dev/vcs}
done
This script Line 9 is the syntax error.
--- /a/setupcon
+++ /b/setupcon
@@ -911,7 +911,7 @@
if ls /dev/fb* >/dev/null 2>/dev/null; then
for i in /dev/vcs[0-9]*; do
{
- $commands_f
+ ${commands_f:-:}
} < /dev/tty\${i#/dev/vcs} > /dev/tty\${i#/dev/vcs}
done
fi
Reply to: