summaryrefslogtreecommitdiff
path: root/debian/local/finish-install.d/51hurd_config-console
blob: 55ea3d07e82485b50b7a57c82b67e7da2d3df6ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

if [ -f /var/run/hurd-console.pid ]
then
	VGA_OPTIONS=""
	for i in $(cat /proc/cmdline) ; do
		case "$i" in
			VGA_OPTIONS=*)
				VGA_OPTIONS=${i#VGA_OPTIONS=}
				;;
		esac
	done
	if [ -n "$VGA_OPTIONS" ]
	then
		sed -i -e "s/DISPLAY='-d vga'/DISPLAY='-d vga $VGA_OPTIONS'/" /target/etc/default/hurd-console
	fi
else
	sed -i -e "s/ENABLE='true'/ENABLE='false'/" /target/etc/default/hurd-console
fi