瀏覽代碼

functions

Bob Mottram 9 年之前
父節點
當前提交
d5fb8076ba
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/freedombone-image-customise

+ 3
- 3
src/freedombone-image-customise 查看文件

93
 EOF
93
 EOF
94
 }
94
 }
95
 
95
 
96
-function configure_networking {
96
+configure_networking() {
97
     echo "# This file describes the network interfaces available on your system
97
     echo "# This file describes the network interfaces available on your system
98
 # and how to activate them. For more information, see interfaces(5).
98
 # and how to activate them. For more information, see interfaces(5).
99
 
99
 
152
 ' > $rootdir/etc/init.d/motd
152
 ' > $rootdir/etc/init.d/motd
153
 }
153
 }
154
 
154
 
155
-function configure_ssh {
155
+configure_ssh() {
156
     sed -i "s/Port .*/Port 2222/g" $rootdir/etc/ssh/sshd_config
156
     sed -i "s/Port .*/Port 2222/g" $rootdir/etc/ssh/sshd_config
157
 
157
 
158
     if [[ "$SSH_PUBKEY" != "no" ]]; then
158
     if [[ "$SSH_PUBKEY" != "no" ]]; then
168
     fi
168
     fi
169
 }
169
 }
170
 
170
 
171
-function continue_installation {
171
+continue_installation() {
172
     # If a configuration file exists then run with it
172
     # If a configuration file exists then run with it
173
     # otherwise the interactive installer can be used
173
     # otherwise the interactive installer can be used
174
     # This is equivalent to installing freedombox-setup on freedombox
174
     # This is equivalent to installing freedombox-setup on freedombox