Skip to content
Snippets Groups Projects
Commit dadfa64e authored by Jan-Tarek Butt's avatar Jan-Tarek Butt
Browse files

Merge branch 'banner' into v0.7

parents 7f3366bc adb8f80d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
cleanup () {
rm -rf /usr/lib/micron.d/ffnw-banner
rm -rf /lib/ffnw/banner
}
grep -Fxvf /etc/banner /lib/ffnw/banner/banner > /dev/null
if [ $? -eq 0 ]; then
mv /lib/ffnw/banner/banner /etc/banner
cleanup
else
cleanup
fi
#!/bin/lua
local delDir = "/lib/ffnw/banner/"
local srcFile = "/lib/ffnw/banner/banner"
local desFile = "/etc/banner"
local srcBanner = io.open(srcFile, "r")
if srcBanner~=nil then
os.execute('cp '..srcFile..' '..desFile)
os.execute('rm -rf '..delDir)
end
*/5 * * * * sh /lib/ffnw/banner/banner.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment