diff options
Diffstat (limited to 'applications/luci-splash/luasrc/model')
-rw-r--r-- | applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua b/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua index 82ba0b9dbf..5b744e1ccc 100644 --- a/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua +++ b/applications/luci-splash/luasrc/model/cbi/splash/splashtext.lua @@ -33,6 +33,8 @@ function f.handle(self, state, data) if state == FORM_VALID then if data.text then fs.writefile(splashtextfile, data.text:gsub("\r\n", "\n")) + else + fs.unlink(splashtextfile) end end return true |