tools-hardened/desktop Cleans up code of .sh files
This clean-up includes removing trailing white-spaces and ensuring function structure consistency.
This commit is contained in:
parent
8914b1f9c9
commit
6b03011ea2
|
@ -4,8 +4,7 @@ WORKING=$(pwd)
|
|||
CHROOTS=${CHROOTS:-"${WORKING}"}
|
||||
MYROOT=${MYROOT:-""}
|
||||
|
||||
cleanup()
|
||||
{
|
||||
cleanup() {
|
||||
cd ${WORKING}
|
||||
rm -f ramdisk.iso
|
||||
rm -f tinhat.igz
|
||||
|
@ -14,8 +13,7 @@ cleanup()
|
|||
}
|
||||
|
||||
|
||||
mkinitramfs()
|
||||
{
|
||||
mkinitramfs() {
|
||||
local BUSYBOX="http://dev.gentoo.org/~twitch153/tinhat/busybox"
|
||||
|
||||
cd ${WORKING}
|
||||
|
@ -38,8 +36,7 @@ mkinitramfs()
|
|||
}
|
||||
|
||||
|
||||
mkiso()
|
||||
{
|
||||
mkiso() {
|
||||
cd ${WORKING}
|
||||
mkdir -p iso/boot/grub
|
||||
|
||||
|
@ -57,8 +54,7 @@ mkiso()
|
|||
}
|
||||
|
||||
|
||||
nameit()
|
||||
{
|
||||
nameit() {
|
||||
DATE=$(date +%Y%m%d)
|
||||
NAME="${MYROOT}-${DATE}.iso"
|
||||
|
||||
|
|
|
@ -13,8 +13,7 @@ mount_dirs() {
|
|||
mount --rbind /sys/ "${ROOTFS}"/sys/
|
||||
}
|
||||
|
||||
populate_kernel_src()
|
||||
{
|
||||
populate_kernel_src() {
|
||||
cp -f files/kernel-config "${KERNEL_SOURCE}"
|
||||
cp -Rf "${KERNEL_SOURCE}"/ "${ROOTFS}"/usr/src/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue