瀏覽代碼

Consistent function style

Bob Mottram 7 年之前
父節點
當前提交
bbf1b9461d
共有 1 個檔案被更改,包括 7 行新增7 行删除
  1. 7
    7
      src/freedombone-image-customise

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

1007
 
1007
 
1008
 # User interface for USB drive installs ######################################
1008
 # User interface for USB drive installs ######################################
1009
 
1009
 
1010
-function mesh_client_startup_applications {
1010
+mesh_client_startup_applications() {
1011
     if [ ! -d "$rootdir/home/$MY_USERNAME/Desktop" ]; then
1011
     if [ ! -d "$rootdir/home/$MY_USERNAME/Desktop" ]; then
1012
         mkdir -p "$rootdir/home/$MY_USERNAME/Desktop"
1012
         mkdir -p "$rootdir/home/$MY_USERNAME/Desktop"
1013
     fi
1013
     fi
1086
     chmod +x "$START_DESKTOP2"
1086
     chmod +x "$START_DESKTOP2"
1087
 }
1087
 }
1088
 
1088
 
1089
-function mesh_desktop_icons {
1089
+mesh_desktop_icons() {
1090
     if [ ! -d "$rootdir/home/$MY_USERNAME/Desktop" ]; then
1090
     if [ ! -d "$rootdir/home/$MY_USERNAME/Desktop" ]; then
1091
         mkdir -p "$rootdir/home/$MY_USERNAME/Desktop"
1091
         mkdir -p "$rootdir/home/$MY_USERNAME/Desktop"
1092
     fi
1092
     fi
1104
     chroot "$rootdir" /bin/chown -R "$MY_USERNAME":"$MY_USERNAME" "/home/$MY_USERNAME/Desktop"
1104
     chroot "$rootdir" /bin/chown -R "$MY_USERNAME":"$MY_USERNAME" "/home/$MY_USERNAME/Desktop"
1105
 }
1105
 }
1106
 
1106
 
1107
-function configure_user_interface {
1107
+configure_user_interface() {
1108
     if [[ "$VARIANT" != "meshclient" && "$VARIANT" != "meshusb" && "$VARIANT" != "usb" ]]; then
1108
     if [[ "$VARIANT" != "meshclient" && "$VARIANT" != "meshusb" && "$VARIANT" != "usb" ]]; then
1109
         return
1109
         return
1110
     fi
1110
     fi
1642
 # setup_utils
1642
 # setup_utils
1643
 ##############################################################################
1643
 ##############################################################################
1644
 
1644
 
1645
-function image_install_inadyn {
1645
+image_install_inadyn() {
1646
     if [ "$INSTALLING_MESH" ]; then
1646
     if [ "$INSTALLING_MESH" ]; then
1647
         return
1647
         return
1648
     fi
1648
     fi
1705
     echo "inadyn commit:$INADYN_COMMIT" >> "$rootdir/root/freedombone-completed.txt"
1705
     echo "inadyn commit:$INADYN_COMMIT" >> "$rootdir/root/freedombone-completed.txt"
1706
 }
1706
 }
1707
 
1707
 
1708
-function image_setup_utils {
1708
+image_setup_utils() {
1709
     if [ "$INSTALLING_MESH" ]; then
1709
     if [ "$INSTALLING_MESH" ]; then
1710
         return
1710
         return
1711
     fi
1711
     fi
1893
     #sed -i 's|btrfs subvol=@|btrfs defaults,subvol=@,compress=lzo,ssd|g' $rootdir/etc/fstab
1893
     #sed -i 's|btrfs subvol=@|btrfs defaults,subvol=@,compress=lzo,ssd|g' $rootdir/etc/fstab
1894
 }
1894
 }
1895
 
1895
 
1896
-function image_install_nodejs {
1896
+image_install_nodejs() {
1897
     mesh_install_nodejs
1897
     mesh_install_nodejs
1898
     #echo 'install_nodejs' >> ${rootdir}/root/${PROJECT_NAME}-completed.txt
1898
     #echo 'install_nodejs' >> ${rootdir}/root/${PROJECT_NAME}-completed.txt
1899
 }
1899
 }
1900
 
1900
 
1901
-function image_preinstall_repos {
1901
+image_preinstall_repos() {
1902
     if [[ "$VARIANT" == "mesh"* ]]; then
1902
     if [[ "$VARIANT" == "mesh"* ]]; then
1903
         return
1903
         return
1904
     fi
1904
     fi