Files
lfs-auto/script/sys.pack.setup/lfs-bootscripts.sh
2016-04-29 00:03:35 +07:00

37 lines
629 B
Bash
Executable File

#!/bin/bash
# using : build lfs-bootscripts
# author : kevin.leptons@gmail.com
# libs
source configuration.sh
source util.sh
# veriables
package_name="sys.lfs-bootscripts"
source_file="../lfs-bootscripts-20150222.tar.bz2"
source_dir="lfs-bootscripts-20150222"
# step.verify
step_verify() {
[ -f $source_file ]
}
# step.extract
step_extract() {
tar -vxf $source_file
}
# step.install
step_install() {
make install
}
# run
cd $root_system_sources
run_step "$package_name.verify" step_verify
run_step "$package_name.extract" step_extract
cd $source_dir
run_step "$package_name.install" step_install
exit 0