rename directory 'python' to 'interface', for I think it is a better name for its included python scripts function.
40 lines
535 B
Bash
Executable File
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 $@
|