blob: 113cf5660cda53b504a9a1126abad8f1d79b3bc2 (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
#!/bin/sh
if [ -x ./Mandrake/mdkinst/usr/bin/perl-install/live_install2 ]; then
dir=`pwd`/Mandrake/mdkinst
elif [ -x ../../../../../Mandrake/mdkinst/usr/bin/perl-install/live_install2 ]; then
dir=`pwd`/../../..
else
echo >&2 "unable to get a working live system to start, check your working directory"
exit 2
fi
/bin/rm -rf /tmp/rhimage
/bin/mkdir -m 0700 /tmp/rhimage || exit 1
/bin/rm -rf /tmp/drakx
/bin/mkdir -m 0700 /tmp/drakx || exit 2
for i in Mandrake RPMS misc boot images
do
/bin/ln -sf "$dir/../../$i" "/tmp/rhimage/$i"
done
/bin/cp -a "$dir/../../Mandrake/mdkinst" "/tmp/drakx"
if [ -x "/tmp/drakx/mdkinst/usr/bin/perl-install/live_install2" ]; then
perlcoredir=/usr/lib/perl5/5.6.0/i386-linux/CORE
cd /tmp/drakx/mdkinst/usr/bin/perl-install
if [ -x $perlcoredir/libperl.so ]; then
/bin/mv $perlcoredir/libperl.so /tmp/drakx/mdkinst
fi
/bin/mkdir -p $perlcoredir
/bin/cp -a /tmp/drakx/mdkinst/$perlcoredir/libperl.so $perlcoredir/libperl.so
if [ -x /usr/bin/packdrake ]; then
/bin/mv /usr/bin/packdrake /tmp/drakx/mdkinst
fi
/bin/cp -a /tmp/drakx/mdkinst/usr/bin/packdrake /usr/bin/packdrake
for i in MonitorsDB CardsNames Cards+
do
if [ -e /usr/X11R6/lib/X11/$i ]; then
/bin/mv /usr/X11R6/lib/X11/$i /tmp/drakx/mdkinst
fi
/bin/cp -a /tmp/drakx/mdkinst/usr/X11R6/lib/X11/$i /usr/X11R6/lib/X11/$i
done
# get correct fonts for DrakX.
if [ -n "$DISPLAY" ]; then
xset +fp /tmp/drakx/mdkinst/usr/X11R6/lib/X11/fonts/
xset fp rehash
fi
# start DrakX
../../../lib/ld-linux.so.2 ../perl ./live_install2
# restore all fonts dir from 7.2 in case something gets wrong.
for i in misc PEX Speedo Type1 mdk 75dpi 100dpi cyrillic
do
if [ -d /usr/X11R6/lib/X11/fonts/$i ]; then
if [ ! -e /usr/X11R6/lib/X11/fonts/$i/fonts.dir ]; then
cd /usr/X11R6/lib/X11/fonts/$i
mkfontdir
if [ -n "$DISPLAY" ]; then
xset fp rehash
fi
cd -
fi
fi
done
# for i in MonitorsDB CardsNames Cards+
# do
# if [ -e /tmp/drakx/mdkinst/$i ]; then
# rm -f /usr/X11R6/lib/X11/$i
# mv /tmp/drakx/mdkinst/$i /usr/X11R6/lib/X11/$i
# fi
# done
#
# if [ -x /tmp/drakx/mdkinst/packdrake ]; then
# rm -f /usr/bin/packdrake
# mv /tmp/drakx/mdkinst/packdrake /usr/bin/packdrake
# fi
#
# if [ -x /tmp/drakx/mdkinst/libperl.so ]; then
# rm -f $perlcoredir/libperl.so
# mv /tmp/drakx/mdkinst/libperl.so $perlcoredir/libperl.so
# fi
else
echo >&2 "unable to get a working live system to start, check your working directory"
exit 2
fi
#/bin/rm -rf /tmp/drakx
#/bin/rm -rf /tmp/rhimage
sync
|