|
@@ -31,14 +31,14 @@ PROJECT_NAME='freedombone'
|
31
|
31
|
export TEXTDOMAIN=${PROJECT_NAME}-image-hardware-setup
|
32
|
32
|
export TEXTDOMAINDIR="/usr/share/locale"
|
33
|
33
|
|
34
|
|
-function enable_serial_console {
|
|
34
|
+enable_serial_console() {
|
35
|
35
|
# By default, spawn a console on the serial port
|
36
|
36
|
device="$1"
|
37
|
37
|
echo $"Adding a getty on the serial port"
|
38
|
38
|
echo "T0:12345:respawn:/sbin/getty -L $device 115200 vt100" >> /etc/inittab
|
39
|
39
|
}
|
40
|
40
|
|
41
|
|
-function setup_flash_kernel {
|
|
41
|
+setup_flash_kernel() {
|
42
|
42
|
if [ ! -d /etc/flash-kernel ] ; then
|
43
|
43
|
mkdir /etc/flash-kernel
|
44
|
44
|
fi
|
|
@@ -56,7 +56,7 @@ function setup_flash_kernel {
|
56
|
56
|
apt-get -yq install flash-kernel
|
57
|
57
|
}
|
58
|
58
|
|
59
|
|
-function a20_env {
|
|
59
|
+a20_env() {
|
60
|
60
|
dtb="$1"
|
61
|
61
|
|
62
|
62
|
# Setup boot.cmd
|
|
@@ -116,7 +116,7 @@ EOF
|
116
|
116
|
echo "rtc_sunxi" >> /etc/initramfs-tools/modules
|
117
|
117
|
}
|
118
|
118
|
|
119
|
|
-function beaglebone_env {
|
|
119
|
+beaglebone_env() {
|
120
|
120
|
bbb_version=$1
|
121
|
121
|
|
122
|
122
|
# Setup uEnv.txt
|