Bug#439512: debian-installer: doubled serial console lines in /etc/securetty
Otavio Salvador <otavio@debian.org> writes:
> diff --git a/packages/finish-install/finish-install.d/90console b/packages/finish-install/finish-install.d/90console
> index 2fd6e2f..fd2a38d 100755
> --- a/packages/finish-install/finish-install.d/90console
> +++ b/packages/finish-install/finish-install.d/90console
> @@ -5,6 +5,14 @@ log() {
> logger -t finish-install "$@"
> }
>
> +avoid_duplication() {
> + if ! grep -q "$1" "$2"; then
> + echo "" >> "$2"
> + echo "# serial console added by debian-installer" >> "$2"
> + echo "$1" >> "$2"
> + fi
> +}
In my final version of patch I've used write_console() to be clearer.
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio@debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
you the whole house."
Reply to: