Files
new_install/operation/copy_kernels.sh
lizhi-rocky 220e6bfe40 add Qin Bo's operating shell scripts in
rename directory 'python' to 'interface', for I think it is a better name for its included python scripts function.
2010-09-03 15:59:49 +08:00

40 lines
535 B
Bash
Executable File

#!/bin/bash
#
# DESCRIPTION: copying kernel and modules to system
#
# SCRIPT NAME: copy_kernel.sh
#
# Input: stdin
# 1.
# 2.
#
# Output:
# 1
# 2
#
# AUTHOR: Qin Bo
#
# EMAIL: bqin@linx-info.com
#
# DATE: 2010-08-23
#
# HISTORY:
# REVISOR DATE MODIFICATION
# Qin Bo 2010-08-23 create
#
#
#
source ./functions
main ()
{
cp -r /Rocky/kernels/* $TARGET/boot/ 2>$dev_LOG
cp -r /Rocky/modules/* $TARGET/lib/modules/ 2>$dev_LOG
cp /Rocky/initrd/initrd.gz $TARGET/boot/initrd.gz.old 2>$dev_LOG
./makeinitrd
}
main $@