Drop Latest change lines, add initial support for Debian/squeeze
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 97-apt-listchanges
1 #!/bin/sh
2 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/97-apt-listchanges
3 # Purpose:       configure apt-listchanges
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2 or any later version.
7 ################################################################################
8
9 set -e
10
11 # Defaults:
12 #apt-listchanges apt-listchanges/confirm boolean false
13 #apt-listchanges apt-listchanges/email-address   string  root
14 #apt-listchanges apt-listchanges/which   select  news
15 #apt-listchanges apt-listchanges/frontend        select  pager
16 #apt-listchanges apt-listchanges/save-seen       boolean true
17
18 if [ -x $target/usr/bin/apt-listchanges ] ; then
19    echo 'apt-listchanges apt-listchanges/confirm boolean true' | $ROOTCMD debconf-set-selections
20    echo 'apt-listchanges apt-listchanges/which   select  both' | $ROOTCMD debconf-set-selections
21
22 fi
23
24 if [ -r $target/etc/apt/listchanges.conf ] ; then
25    sed -i "s/^which=news/which=both/" $target/etc/apt/listchanges.conf
26    sed -i "s/^confirm=0/confirm=1/"   $target/etc/apt/listchanges.conf
27 fi
28
29 ## END OF FILE #################################################################