浏览代码

functions

Bob Mottram 9 年前
父节点
当前提交
d5fb8076ba
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/freedombone-image-customise

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

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