Function style

This commit is contained in:
Bob Mottram 2017-05-30 19:17:39 +01:00
parent af48fdce9d
commit a73b4a02ab
1 changed files with 4 additions and 4 deletions

View File

@ -31,14 +31,14 @@ PROJECT_NAME='freedombone'
export TEXTDOMAIN=${PROJECT_NAME}-image-hardware-setup
export TEXTDOMAINDIR="/usr/share/locale"
function enable_serial_console {
enable_serial_console() {
# By default, spawn a console on the serial port
device="$1"
echo $"Adding a getty on the serial port"
echo "T0:12345:respawn:/sbin/getty -L $device 115200 vt100" >> /etc/inittab
}
function setup_flash_kernel {
setup_flash_kernel() {
if [ ! -d /etc/flash-kernel ] ; then
mkdir /etc/flash-kernel
fi
@ -56,7 +56,7 @@ function setup_flash_kernel {
apt-get -yq install flash-kernel
}
function a20_env {
a20_env() {
dtb="$1"
# Setup boot.cmd
@ -116,7 +116,7 @@ EOF
echo "rtc_sunxi" >> /etc/initramfs-tools/modules
}
function beaglebone_env {
beaglebone_env() {
bbb_version=$1
# Setup uEnv.txt