Kaynağa Gözat

Function style

Bob Mottram 8 yıl önce
ebeveyn
işleme
a73b4a02ab
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4
    4
      src/freedombone-image-hardware-setup

+ 4
- 4
src/freedombone-image-hardware-setup Dosyayı Görüntüle

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