diff --git a/items/virtual.items b/items/virtual.items index 664fbc6..52650e7 100644 --- a/items/virtual.items +++ b/items/virtual.items @@ -1,3 +1,6 @@ /* czy jesteśmy dłużej poza domem? */ Switch sHolidayVacancy "Jesteśmy poza domem" + +Switch sBCacheWriteback "Bcache w trybie writeback" { exec=">[ON:systemctl start toggle-bcache@writeback] >[OFF:systemctl start toggle-bcache@writethrough]" } + diff --git a/rules/salon.kodi.rules b/rules/salon.kodi.rules index 24668b7..e578737 100644 --- a/rules/salon.kodi.rules +++ b/rules/salon.kodi.rules @@ -8,6 +8,8 @@ then Mpd_quodlibet_StartStop_expected.postUpdate(Mpd_quodlibet_StartStop.state) Mpd_quodlibet_StartStop.sendCommand(OFF) + + sBCacheWriteback.sendCommand(ON) end @@ -41,5 +43,6 @@ then sendCommand(sOWFS01, ON) } + sBCacheWriteback.sendCommand(OFF) end diff --git a/sitemaps/tech.sitemap b/sitemaps/tech.sitemap index d27f13f..cb407d9 100644 --- a/sitemaps/tech.sitemap +++ b/sitemaps/tech.sitemap @@ -3,6 +3,8 @@ sitemap pbrk label="Szczegóły techniczne" Frame { Text item=dtSunset_Time Text item=wClouds + Switch item=sHolidayVacancy + Switch item=sBCacheWriteback } Group label="Łączność" {