1a2f18720e25888a3e2cc7f64c901a1dc1763adc
[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 # Latest change: Sun Jan 20 00:25:52 CET 2008 [mika]
8 ################################################################################
9
10 set -e
11
12 # Defaults:
13 #apt-listchanges apt-listchanges/confirm boolean false
14 #apt-listchanges apt-listchanges/email-address   string  root
15 #apt-listchanges apt-listchanges/which   select  news
16 #apt-listchanges apt-listchanges/frontend        select  pager
17 #apt-listchanges apt-listchanges/save-seen       boolean true
18
19 if [ -x $target/usr/bin/apt-listchanges ] ; then
20    echo 'apt-listchanges apt-listchanges/confirm boolean true' | $ROOTCMD debconf-set-selections
21    echo 'apt-listchanges apt-listchanges/which   select  both' | $ROOTCMD debconf-set-selections
22
23 fi
24
25 if [ -r $target/etc/apt/listchanges.conf ] ; then
26    sed -i "s/^which=news/which=both/" $target/etc/apt/listchanges.conf
27    sed -i "s/^confirm=0/confirm=1/"   $target/etc/apt/listchanges.conf
28 fi
29
30 ## END OF FILE #################################################################