summaryrefslogtreecommitdiffstats
path: root/kernel/update_kernel
blob: 1fbb97297a11622ce7ae72dadf6c0ff72b0c90a4 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/bin/bash

ALL_KERNELS="all.kernels"

# move stuff to this new "kernel" directory
if [ ! -d all.kernels ]; then
  mv ../all.kernels .
  rm -rf ../all.modules
fi

function create_marfile() {
    marfile=$1
    shift
    $GIBASEDIR/mdk-stage1/mar/mar -c $marfile $*
}

function create_modules() {
    kernel_path=$1
    kern=$2
    echo "Updating modules in '`pwd`' for kernel '$kern'"
    cp -f `find $kernel_path/lib/modules/ -name "*.o"` .
    /sbin/depmod -F $kernel_path/boot/System.map* -e *.o | perl -pe 's/\\\n//' \
	| perl -ne 's/\.o//g; s/[ \t]+/ /g; print if /: /' > modules.dep
    perl -pi -e 's/((plip|ppa|imm): parport)/$1 parport_pc/' modules.dep

    /sbin/modinfo -f '%{filename} %{description}\n' *.o | perl -lne 'print "$1\t$2" if /(.*?)\.o "(.*)"/' > modules.description
}

function create_modules_mar() {
    echo -n "packdrake $kern: "
    ls *.o | packdrake -b9s "modules.cz" 400000
    echo "done"
    mv modules.cz ../modules.cz-$kern
    for i in network network_gigabit_usb cdrom hd hdcdrom_usb pcmcia all; do
	modules_var="${i}_modules"
	eval "create_marfile ${i}_modules.mar \$$modules_var"
    done
    echo
}

[ -e $ALL_KERNELS/.main ] && main=$(cat $ALL_KERNELS/.main)

rpm=$(rpm -qpl /export/Mandrake/RPMS/kernel-BOOT-*.rpm | perl -lne 'm|/boot/vmlinuz-(.*)| and print $1')
if [ -n "$rpm" -a ! -e $ALL_KERNELS/$rpm ]; then
    [ -n "$main" ] && rm -rf $ALL_KERNELS/$main
    cd $ALL_KERNELS
    rm -rf $rpm ; mkdir $rpm
    cd $rpm
    rpm2cpio /export/Mandrake/RPMS/kernel-BOOT-*.rpm | cpio -id
    find -type f -name "*.o.gz" | xargs gunzip
    cd ../..

    for dir in /tftpboot /var/lib/tftpboot; do
	rm -f $dir/{vmlinuz,network.rdz}
    done
fi 

[ -n "$main" -a -e $ALL_KERNELS/$main ] || {
    cd $ALL_KERNELS
    main=$(echo 2.* | sed 's/.* //')
    echo "Choosing $main"
    echo $main > .main
    cd ..
}

ARCH=`uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/'`

if [ "$ARCH" == "i386" ]; then
    for i in $ALL_KERNELS/*/boot/vmlinuz*; do
	#disable any existing resolution!!!
	/usr/sbin/rdev -v $i 65535 #788 #785 
    done
else
    if [ "$ARCH" == "ppc" ]; then
        cp -f "$KERNEL_BOOT_PATH"/boot/vmlinux .
    else
        cp -f "$KERNEL_BOOT_PATH"/boot/vmlinux.gz .
    fi
fi


GIBASEDIR=`pwd`/..

rm -rf all.modules ; mkdir all.modules
for i in $ALL_KERNELS/*; do
	kern=`basename $i`
	(
	    mkdir all.modules/$kern
	    cd all.modules/$kern

	    create_modules ../../$i $kern
	) || exit 1
done
cp -f all.modules/$main/modules.description .

l=`perl modules.pl images` || exit 1
eval $l

for i in $ALL_KERNELS/*; do
	kern=`basename $i`
	(
	    cd all.modules/$kern

	    if [ "$kern" = "$main" ]; then
		create_modules_mar ../../$i $kern
	    else
		echo "$kern ($main)"
		create_modules_mar ../../$i $kern 2>/dev/null
	    fi
	) || exit 1
done


./check_mar.pl
'>-msgid "RTS/CTS)"
+msgid "RTS/CTS"
msgstr ""
#: ../../printer/printerdrake.pm:1 ../../printer/printerdrake.pm:1 ../../standalone/drakups:1 ../../standalone/harddrake2:1
@@ -17874,7 +17857,7 @@ msgstr ""
msgid "Use Hard Disk to backup"
msgstr ""
-#: ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../install_steps_gtk.pm:1 ../../standalone/drakbackup:1 ../../standalone/drakbackup:1 ../../standalone/drakbackup:1 ../../standalone/drakbackup:1 ../../standalone/drakboot:1
+#: ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../help.pm:1 ../../install_steps_gtk.pm:1 ../../standalone/drakbackup:1 ../../standalone/drakbackup:1 ../../standalone/drakbackup:1 ../../standalone/drakbackup:1
#, c-format
msgid "Configure"
msgstr ""
diff --git a/perl-install/share/po/uz@Cyrl.po b/perl-install/share/po/uz@Cyrl.po
index 9e8c80bd0..408df9d77 100644
--- a/perl-install/share/po/uz@Cyrl.po
+++ b/perl-install/share/po/uz@Cyrl.po
@@ -8,7 +8,7 @@
msgid ""
msgstr ""
"Project-Id-Version: DrakX-uz@Cyrl\n"
-"POT-Creation-Date: 2004-01-05 13:30+0100\n"
+"POT-Creation-Date: 2004-01-06 15:46+0100\n"
"PO-Revision-Date: 2003-11-17 13:47+0100\n"
"Last-Translator: Mashrab Kuvatov <kmashrab@uni-bremen.de>\n"
"Language-Team: Uzbek <uz-li@yahoogroups.com>\n"
@@ -6447,11 +6447,6 @@ msgid ""
"time: "
msgstr "Уланиш вақти: "
-#: ../../standalone/drakboot:1
-#, c-format
-msgid "Lilo/grub mode"
-msgstr "Lilo/grub усули"
-
#: ../../lang.pm:1
#, c-format
msgid "Martinique"
@@ -12344,15 +12339,6 @@ msgstr "Мавзулар"
msgid "Options: %s"
msgstr "Параметрлар: %s"
-#: ../../standalone/drakboot:1
-#, c-format
-msgid ""
-"You are currently using %s as your boot manager.\n"
-"Click on Configure to launch the setup wizard."
-msgstr ""
-"Операцион система юклагичи сифатида сиз %s'ни ишлатаяпсиз.\n"
-"Ўрнатиш ёрдамчисини ишга тушириш учун \"Мослаш\"ни босинг."
-
#: ../../printer/printerdrake.pm:1
#, c-format
msgid "OKI winprinter configuration"
@@ -13354,11 +13340,6 @@ msgstr "Коморос"
msgid "May"
msgstr "Май"
-#: ../../standalone/drakboot:1
-#, c-format
-msgid "Yaboot mode"
-msgstr "Yaboot усули"
-
#: ../../mouse.pm:1
#, c-format
msgid "Generic 3 Button Mouse"
@@ -19131,7 +19112,6 @@ msgid "Use Hard Disk to backup"
msgstr ""
#: ../../help.pm:1 ../../install_steps_gtk.pm:1 ../../standalone/drakbackup:1
-#: ../../standalone/drakboot:1
#, c-format
msgid "Configure"
msgstr "Мослаш"
@@ -19458,6 +19438,19 @@ msgstr ""
"Хат-хабар ва янгиликларни ўқиш ва жўнатиш ва Интернетни кўриш воситалар "
"тўплами."
+#~ msgid "Lilo/grub mode"
+#~ msgstr "Lilo/grub усули"
+
+#~ msgid ""
+#~ "You are currently using %s as your boot manager.\n"
+#~ "Click on Configure to launch the setup wizard."
+#~ msgstr ""
+#~ "Операцион система юклагичи сифатида сиз %s'ни ишлатаяпсиз.\n"
+#~ "Ўрнатиш ёрдамчисини ишга тушириш учун \"Мослаш\"ни босинг."
+
+#~ msgid "Yaboot mode"
+#~ msgstr "Yaboot усули"
+
#~ msgid "Choose the profile to configure"
#~ msgstr "Мослаш учун профилни танланг"