Skip to content
Snippets Groups Projects
Commit a73b4a02 authored by Bob Mottram's avatar Bob Mottram
Browse files

Function style

parent af48fdce
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment