summaryrefslogtreecommitdiffstats
path: root/base/kernel/post-install
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-10-16 22:38:28 +0200
committertnut <thierryn1 at hispeed dot ch>2010-10-16 22:38:28 +0200
commit2083e4e86223fcee71dfca8c8abba170939dbaac (patch)
tree045c82ae6bbf44ba1b2105890a23971bd6b60645 /base/kernel/post-install
parentd4e730a7a5d43381c9e7dc03003a2e1e8531f5ba (diff)
downloadnutyx-extra-2083e4e86223fcee71dfca8c8abba170939dbaac.tar.gz
nutyx-extra-2083e4e86223fcee71dfca8c8abba170939dbaac.tar.bz2
nutyx-extra-2083e4e86223fcee71dfca8c8abba170939dbaac.tar.xz
nutyx-extra-2083e4e86223fcee71dfca8c8abba170939dbaac.zip
kernel devient kernel-35
Diffstat (limited to 'base/kernel/post-install')
-rw-r--r--base/kernel/post-install71
1 files changed, 0 insertions, 71 deletions
diff --git a/base/kernel/post-install b/base/kernel/post-install
deleted file mode 100644
index a9433c1ce..000000000
--- a/base/kernel/post-install
+++ /dev/null
@@ -1,71 +0,0 @@
-version=2.6.35-NuTyX
-SCRIPT_VERSION="attapu"
-SRC=/tmp/work
-WDIR=$SRC/nutyx-initrd-2009
-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
- rm -r $WDIR/rootfs/lib/modules/$version/kernel/drivers/net/$i
-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
-$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
-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,}
-sh $WDIR/script/mkinitrd $WDIR
-cp $WDIR/iso/isolinux/initrd /boot/nutyx-initrd
-rm -r $SRC