Otavio Salvador <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]      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."


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to