aboutsummaryrefslogtreecommitdiffstats
path: root/kernel-rt/post-install
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-01-19 22:31:12 +0100
committerpiernov <piernov@piernov.org>2012-01-19 22:31:12 +0100
commitc5a2817865ec01a9c5c14a389921043152abf66e (patch)
tree59c0f42fddeb6fdedfa029ae8226fd5ef80d0709 /kernel-rt/post-install
downloadnutyx-multimedia-c5a2817865ec01a9c5c14a389921043152abf66e.tar.gz
nutyx-multimedia-c5a2817865ec01a9c5c14a389921043152abf66e.tar.bz2
nutyx-multimedia-c5a2817865ec01a9c5c14a389921043152abf66e.tar.xz
nutyx-multimedia-c5a2817865ec01a9c5c14a389921043152abf66e.zip
Ajout kernel-rt 3.2.1-rt10-1 > Kernel temps réel
Diffstat (limited to 'kernel-rt/post-install')
-rw-r--r--kernel-rt/post-install40
1 files changed, 40 insertions, 0 deletions
diff --git a/kernel-rt/post-install b/kernel-rt/post-install
new file mode 100644
index 0000000..a938076
--- /dev/null
+++ b/kernel-rt/post-install
@@ -0,0 +1,40 @@
+version=3.2.1
+if [ ! -d /lib/modules/${version} ]; then
+ echo "post-install impossible"
+ echo "/lib/modules/${version} pas trouvé"
+ exit 1
+fi
+SCRIPT_VERSION="pakxe.3"
+SRC=/tmp/work
+WDIR=$SRC/nutyx-initrd
+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
+cp -a /lib/modules/${version} \
+$WDIR/rootfs/lib/modules/
+
+# Copie du script d'install
+cp /root/bin/install-${SCRIPT_VERSION}.ash $WDIR/rootfs/install/
+
+# Création de l'initrd
+sh $WDIR/script/mkinitrd $WDIR
+cp $WDIR/iso/isolinux/initrd /boot/nutyx-initrd
+rm -r $SRC