Index: build/create_update_folder.sh =================================================================== diff -u -r0ab8fb4db8646f712630e78b73fb1f7fb185126d -r7a6f770d89250c458eb5d23c255b3c34946e8164 --- build/create_update_folder.sh (.../create_update_folder.sh) (revision 0ab8fb4db8646f712630e78b73fb1f7fb185126d) +++ build/create_update_folder.sh (.../create_update_folder.sh) (revision 7a6f770d89250c458eb5d23c255b3c34946e8164) @@ -42,6 +42,13 @@ SCRIPT_GLBLS=globals.sh listOfHiddenGits=() +CURRENT_DIR=$(pwd) +SETTINGS_FOLDER="settings" +UI_CONFIGS_FOLDER=$FOLDER_DST/$SETTINGS_FOLDER +SETTINGS_CRC_DST_FILE=$SETTINGS_FOLDER".crc" +SYSTEMS_CONF_FILE="System.conf" +SETTINGS_ON_DEVICE_DST=/var/configuration + #if [ ! -z "$1" ]; then # FOLDER_SRC="$1" #fi @@ -95,5 +102,8 @@ rm -rf "$hidden" done -#removing this script to clean up the script folder -#rm "$FOLDER_DST"/"$FOLDER_SCR"/"$SCRIPT_SLF" TODO this is not needed \ No newline at end of file +# Get the list of all the files in the ui.configs folder except the System.conf since the user can change the contents +# of it. Calculate the sha256sum on the files and write them to the settings.crc file +cd "$UI_CONFIGS_FOLDER" +find . -type f -name '*' ! -name "$SYSTEMS_CONF_FILE" ! -name "$SETTINGS_CRC_DST_FILE" -exec sha256sum {} \; > "$SETTINGS_CRC_DST_FILE" +cd "$CURRENT_DIR"