Browse Source

Fixed music not playing in case of brutal shutdown

Brendan Abolivier 8 years ago
parent
commit
951f2676bf
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      welcomehome

+ 5
- 0
welcomehome View File

117
     # Set volume to the right value
117
     # Set volume to the right value
118
     set_volume $volume
118
     set_volume $volume
119
 
119
 
120
+    # Removing lock file in case of ungraceful shutdown
121
+    if [ ! -f $lock_file ]; then
122
+        rm $lock_file
123
+    fi
124
+
120
     log "Initialisation complete"
125
     log "Initialisation complete"
121
 }
126
 }
122
 
127