summaryrefslogtreecommitdiffstats
path: root/base/kernel-35/post-install
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2011-02-26 19:06:30 +0100
committertnut <thierryn1 at hispeed dot ch>2011-02-26 19:06:30 +0100
commitf62d3bbb2a0972854545612ba3b8e2b942289456 (patch)
tree022d3833b37ded435d3462131ed6a04a1ea0f63e /base/kernel-35/post-install
parent4b06a04cfe276f97393d2f5836bc5fb29688a538 (diff)
downloadnutyx-pakxe-f62d3bbb2a0972854545612ba3b8e2b942289456.tar.gz
nutyx-pakxe-f62d3bbb2a0972854545612ba3b8e2b942289456.tar.bz2
nutyx-pakxe-f62d3bbb2a0972854545612ba3b8e2b942289456.tar.xz
nutyx-pakxe-f62d3bbb2a0972854545612ba3b8e2b942289456.zip
kernel-35, supprimé
Diffstat (limited to 'base/kernel-35/post-install')
-rw-r--r--base/kernel-35/post-install77
1 files changed, 0 insertions, 77 deletions
diff --git a/base/kernel-35/post-install b/base/kernel-35/post-install
deleted file mode 100644
index c8bdf0554..000000000
--- a/base/kernel-35/post-install
+++ /dev/null
@@ -1,77 +0,0 @@
-version=2.6.35-NuTyX
-SCRIPT_VERSION="pakxe"
-SRC=/tmp/work
-WDIR=$SRC/nutyx-initrd-2011
-ARCH=`uname -m`
-depmod $version
-if [ ! -d $SRC ]; then
- mkdir -p $SRC
-fi
-tar -C $SRC -xf /boot/nutyx-initrd.* || exit 1
-cp /root/bin/install-${SCRIPT_VERSION}.ash \
-$WDIR/rootfs/install/
-for i in $WDIR/rootfs/install/setup-install \
- $WDIR/rootfs/install/setup-mirroir
-do
- sed -i "s|#INSTALL#|install-$SCRIPT_VERSION.ash|" $i || exit 1
-done
-
-for i in setup-grub functions setup-main main.txt
-do
- sed -i "s|#VERSION#|$SCRIPT_VERSION|" $WDIR/rootfs/install/$i || exit 1
-done
-# Copie des modules kernels
-mkdir -p $WDIR/rootfs/lib/modules/$version/kernel/{drivers,fs}
-cp -a /lib/modules/$version/kernel/crypto \
-$WDIR/rootfs/lib/modules/$version/kernel/
-for i in ata block input ide hid message parport \
-serial misc net pcmcia scsi usb md rtc
-do
- if [ -d /lib/modules/$version/kernel/drivers/$i ]; then
- cp -a /lib/modules/$version/kernel/drivers/$i \
- $WDIR/rootfs/lib/modules/$version/kernel/drivers/
- fi
-done
-for i in wireless irda wan bonding \
-hamradio appletalk cxgb3 mlx4 sfc
-do
- 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
- if [ -d /lib/modules/$version/kernel/fs/$i ]; then
- cp -a /lib/modules/$version/kernel/fs/$i \
- $WDIR/rootfs/lib/modules/$version/kernel/fs/
- fi
-done
-if [ -d /lib/modules/$version/kernel/net/sunrpc ]; then
- mkdir -p $WDIR/rootfs/lib/modules/${_baseversion}-NuTyX/kernel/net/
- cp -a /lib/modules/$version/kernel/net/sunrpc \
- $WDIR/rootfs/lib/modules/$version/kernel/net/
-fi
-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
-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
-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
-