File: README

package info (click to toggle)
xdebconfigurator 1.35
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 328 kB
  • ctags: 42
  • sloc: perl: 982; makefile: 70; sh: 57
file content (46 lines) | stat: -rw-r--r-- 1,321 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
This is the readme file for package xdebconfigurator. 
############################################################
The package contains the following scripts:
(/usr/sbin/)
xdebconfigurator
Xdriver.pl

This README file is stored in:
(/usr/share/doc/xdebconfigurator/)
############################################################

This package was made to allow xserver-xfree86 be
installed noninteractively on a debian box, for a 
norwegian project called "skolelinux".
See http://www.skolelinux.no

############################################################
Example implementation with this base-config script:

#!/bin/sh -e
#
# This script will run Xdebconfigurator to set values in the debconf-db.
# Next it will run dexconf to write a new XF86Config-4 file.

fil="/usr/sbin/xdebconfigurator"
dexconf="/usr/bin/dexconf"
xserver_installed=$( dpkg -s xserver-xfree86 | awk '/Status\:/ {print $4}' )
# echo $xserver_installed
if [ $xserver_installed = "installed" ]; then
  if [ -x $fil ]; then 
    # run Xdebconfigurator
    $fil -d -c -i -k 
  fi
  if [ -x $dexconf ] 
    then
     # run dexconf, and keep going even if it fails.
     if $dexconf; then
       true
     else
       echo "Failed to run $dexconf."
       echo "Report the bug and press any key to continue"
       read
     fi
  fi
fi