-#!/bin/sh
-set -o errexit
+#!/bin/bash
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
+hvbuild()
+{
+ cd ${LFS_TMP}/${PACKAGE}
+ make linux
+ make prefix=/usr install
+}
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}
-make linux
-make prefix=/usr install
-
-cat > /etc/skel/.kermrc << "EOF"
+hvbuild_post()
+{
+ cat > /etc/skel/.kermrc << "EOF"
set line /dev/ttyUSB0
set speed 115200
set carrier-watch off
set window 5
xecho \27[32m\27[40m
EOF
-
-exit $?
+}