summaryrefslogtreecommitdiffstats
path: root/base/kernel-35/post-install
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2011-01-24 18:07:41 +0100
committertnut <thierryn1 at hispeed dot ch>2011-01-24 18:07:41 +0100
commit1d54d255a6485ea0b0390e0771048296e634990b (patch)
treeb3ab8ab817d689d50c9fce217dd15f79a17b9f84 /base/kernel-35/post-install
parent172f7cb44a45a0d622373fca654a26dfa4185da6 (diff)
downloadnutyx-pakxe-1d54d255a6485ea0b0390e0771048296e634990b.tar.gz
nutyx-pakxe-1d54d255a6485ea0b0390e0771048296e634990b.tar.bz2
nutyx-pakxe-1d54d255a6485ea0b0390e0771048296e634990b.tar.xz
nutyx-pakxe-1d54d255a6485ea0b0390e0771048296e634990b.zip
kernel-35 maj 2.6.35.10-1
Diffstat (limited to 'base/kernel-35/post-install')
-rw-r--r--base/kernel-35/post-install28
1 files changed, 17 insertions, 11 deletions
diff --git a/base/kernel-35/post-install b/base/kernel-35/post-install
index 55ab44f74..c8bdf0554 100644
--- a/base/kernel-35/post-install
+++ b/base/kernel-35/post-install
@@ -1,7 +1,8 @@
version=2.6.35-NuTyX
-SCRIPT_VERSION="attapu.1"
+SCRIPT_VERSION="pakxe"
SRC=/tmp/work
-WDIR=$SRC/nutyx-initrd-2009
+WDIR=$SRC/nutyx-initrd-2011
+ARCH=`uname -m`
depmod $version
if [ ! -d $SRC ]; then
mkdir -p $SRC
@@ -34,7 +35,9 @@ done
for i in wireless irda wan bonding \
hamradio appletalk cxgb3 mlx4 sfc
do
- rm -r $WDIR/rootfs/lib/modules/$version/kernel/drivers/net/$i
+ if [ -d $WDIR/rootfs/lib/modules/$version/kernel/drivers/net/$i ]; then
+ rm -r $WDIR/rootfs/lib/modules/$version/kernel/drivers/net/$i
+ fi
done
for i in fat ntfs smbfs vfat ext4 fs nfs nfs_common nfsd lockd
do
@@ -48,24 +51,27 @@ if [ -d /lib/modules/$version/kernel/net/sunrpc ]; then
cp -a /lib/modules/$version/kernel/net/sunrpc \
$WDIR/rootfs/lib/modules/$version/kernel/net/
fi
-$WDIR/rootfs/sbin/depmod -b $WDIR/rootfs $version
-rm $WDIR/rootfs/sbin/depmod
cp /root/bin/install-${SCRIPT_VERSION}.ash $WDIR/rootfs/install/
# Compression des dossiers
for i in sbin var lib usr opt etc
do mksquashfs $WDIR/rootfs/$i $WDIR/rootfs/sqfs/$i
done
-mkdir $WDIR/rootfs/libT
-for i in libc.so.6 ld-linux.so.2
- do mv $WDIR/rootfs/lib{,T}/$i
-done
+if [ "$ARCH" == "i686" ]; then
+ mkdir $WDIR/rootfs/libT
+ for i in libc.so.6 ld-linux.so.2
+ do mv $WDIR/rootfs/lib{,T}/$i
+ done
+fi
for i in sbin var lib usr opt
do rm -r $WDIR/rootfs/$i
mkdir $WDIR/rootfs/$i
done
-rm -r $WDIR/rootfs/lib
-mv $WDIR/rootfs/lib{T,}
+if [ "$ARCH" == "i686" ]; then
+ rm -r $WDIR/rootfs/lib
+ mv $WDIR/rootfs/lib{T,}
+fi
sh $WDIR/script/mkinitrd $WDIR
cp $WDIR/iso/isolinux/initrd /boot/nutyx-initrd
rm -r $SRC
+