summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-04-11 11:51:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-04-11 11:51:40 +0000
commitfc1ca6a13a8ac078a2f57736da53eb81ed6b3f29 (patch)
tree290051ee643d462e109b918b245c729ff38449aa
parentc7aff578a48e4306930908e9c8e340c5ca12ddab (diff)
downloaddrakx-backup-do-not-use-fc1ca6a13a8ac078a2f57736da53eb81ed6b3f29.tar
drakx-backup-do-not-use-fc1ca6a13a8ac078a2f57736da53eb81ed6b3f29.tar.gz
drakx-backup-do-not-use-fc1ca6a13a8ac078a2f57736da53eb81ed6b3f29.tar.bz2
drakx-backup-do-not-use-fc1ca6a13a8ac078a2f57736da53eb81ed6b3f29.tar.xz
drakx-backup-do-not-use-fc1ca6a13a8ac078a2f57736da53eb81ed6b3f29.zip
have a fake main for cardmgr only if needed
-rwxr-xr-xupdate_kernel6
1 files changed, 4 insertions, 2 deletions
diff --git a/update_kernel b/update_kernel
index b38611ff5..2f5c51e52 100755
--- a/update_kernel
+++ b/update_kernel
@@ -100,7 +100,8 @@ for i in $ALL_KERNELS/*; do
kern=`basename $i`
[ -e $i/cardmgr ] && (
cd $i/cardmgr
- echo "int main(int argc, char **argv) { cardmgr_main(argc, argv); }" > main.c
+ touch main.c
+ nm cardmgr.o | grep -q cardmgr_main && echo "int main(int argc, char **argv) { cardmgr_main(argc, argv); }" > main.c
gcc -o cardmgr-$kern *.o main.c
)
(
@@ -117,7 +118,7 @@ done
install_kernel() {
- v=2.4.2-BOOT5
+ v=2.4.3-BOOT4
scp kenobi:~chmou/work/kernel/archive/kernel-$v.tar.bz2 /tmp
cd ~/gi/all.kernels ; rm -rf $v ; mkdir $v ; cd $v ; tar xfj /tmp/kernel-$v.tar.bz2
cd ~/gi ; ./update_kernel ; rm -f images/network.rdz ; ./make_boot_img images/network.rdz network
@@ -125,3 +126,4 @@ install_kernel() {
scp images/network.rdz kenobi:/tftpboot
cp -f ~/gi/all.modules/modules.cz-$v /export/Mandrake/mdkinst/lib/modules.cz
}
+# scp kenobi:~mbadaire/kernel/boot/archive/kernel-$v.tar.bz2 /tmp