diff options
Diffstat (limited to 'server/bin/installmodule')
-rwxr-xr-x | server/bin/installmodule | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/bin/installmodule b/server/bin/installmodule index 4625bd04..b0a4ac5b 100755 --- a/server/bin/installmodule +++ b/server/bin/installmodule @@ -73,7 +73,8 @@ source module.conf || exit # Descomprimir Initrd. mkdir -p $tmpinit cd $tmpinit -gzip -dc $INITRD | cpio -im 2>/dev/null +COMPRESS=$(file -b "$CLIENTINITRD" | awk '{print tolower($1);}') +$COMPRESS -dc $INITRD | cpio -im 2>/dev/null # VersiĆ³n del Kernel del Initrd. KERNEL=$(ls -d lib/modules/[0-9]* | head -1) |