Przeglądaj źródła

Include utils in logging command

So that functions can be called by logging app routines
Bob Mottram 8 lat temu
rodzic
commit
fb811406e9
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8
    0
      src/freedombone-logging

+ 8
- 0
src/freedombone-logging Wyświetl plik

40
 # Also the shred command can be very slow on Beaglebone Black
40
 # Also the shred command can be very slow on Beaglebone Black
41
 REMOVE_FILES_COMMAND='rm -rf'
41
 REMOVE_FILES_COMMAND='rm -rf'
42
 
42
 
43
+source /usr/local/bin/${PROJECT_NAME}-vars
44
+
45
+UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
46
+for f in $UTILS_FILES
47
+do
48
+    source $f
49
+done
50
+
43
 APP_FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
51
 APP_FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
44
 for f in $APP_FILES
52
 for f in $APP_FILES
45
 do
53
 do