Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3993 dpurdie 1
#! /bin/bash
2
################################################################################
3
# Post install script
4
# Must return 0 if all is well
5
#
6
function error(){
7
    echo "ERROR: $*"
8
    exit 1
9
}
10
 
11
#   Insert the configure script into the kde startup
12
cf='/root/vix/configureVM'
13
[ -f "$cf" ] || error "Cannot find file" $cf
14
 
15
kdestart=/etc/kde4/kdm/Xsetup
16
[ -f "$kdestart" ] || error "Cannot find file:" $kdestart
17
 
18
#   Remove any line that contains our script name
19
#   then add our script name
20
#
21
sed -i "$kdestart" -e '/configureVM/d'
22
echo "$cf -auto" >> "$kdestart"
23
 
24
#
25
#   Run the script self installer
26
#
27
"$cf" -install
28
 
29
true