diff --git a/src/freedombone-image-hardware-setup b/src/freedombone-image-hardware-setup index 0878bcddbcacccc998a055312f0bcbfd8fe2294b..6fb841ee85b310d8faf76608b8e37d9ae2a4bba5 100755 --- a/src/freedombone-image-hardware-setup +++ b/src/freedombone-image-hardware-setup @@ -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