From bbf1b9461d4327d40dedf954574a911b5f0dd4df Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 8 Mar 2018 11:13:07 +0000 Subject: [PATCH] Consistent function style --- src/freedombone-image-customise | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index db060082..561407f4 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -1007,7 +1007,7 @@ initialise_mesh() { # User interface for USB drive installs ###################################### -function mesh_client_startup_applications { +mesh_client_startup_applications() { if [ ! -d "$rootdir/home/$MY_USERNAME/Desktop" ]; then mkdir -p "$rootdir/home/$MY_USERNAME/Desktop" fi @@ -1086,7 +1086,7 @@ function mesh_client_startup_applications { chmod +x "$START_DESKTOP2" } -function mesh_desktop_icons { +mesh_desktop_icons() { if [ ! -d "$rootdir/home/$MY_USERNAME/Desktop" ]; then mkdir -p "$rootdir/home/$MY_USERNAME/Desktop" fi @@ -1104,7 +1104,7 @@ function mesh_desktop_icons { chroot "$rootdir" /bin/chown -R "$MY_USERNAME":"$MY_USERNAME" "/home/$MY_USERNAME/Desktop" } -function configure_user_interface { +configure_user_interface() { if [[ "$VARIANT" != "meshclient" && "$VARIANT" != "meshusb" && "$VARIANT" != "usb" ]]; then return fi @@ -1642,7 +1642,7 @@ EOF # setup_utils ############################################################################## -function image_install_inadyn { +image_install_inadyn() { if [ "$INSTALLING_MESH" ]; then return fi @@ -1705,7 +1705,7 @@ function image_install_inadyn { echo "inadyn commit:$INADYN_COMMIT" >> "$rootdir/root/freedombone-completed.txt" } -function image_setup_utils { +image_setup_utils() { if [ "$INSTALLING_MESH" ]; then return fi @@ -1893,12 +1893,12 @@ function image_setup_utils { #sed -i 's|btrfs subvol=@|btrfs defaults,subvol=@,compress=lzo,ssd|g' $rootdir/etc/fstab } -function image_install_nodejs { +image_install_nodejs() { mesh_install_nodejs #echo 'install_nodejs' >> ${rootdir}/root/${PROJECT_NAME}-completed.txt } -function image_preinstall_repos { +image_preinstall_repos() { if [[ "$VARIANT" == "mesh"* ]]; then return fi