瀏覽代碼

Fixed music not playing in case of brutal shutdown

Brendan Abolivier 8 年之前
父節點
當前提交
951f2676bf
簽署人: Brendan Abolivier <contact@brendanabolivier.com> GPG 金鑰 ID: 8EF1500759F70623
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      welcomehome

+ 5
- 0
welcomehome 查看文件

@@ -117,6 +117,11 @@ init() {
117 117
     # Set volume to the right value
118 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 125
     log "Initialisation complete"
121 126
 }
122 127