Skip to content
Snippets Groups Projects
Verified Commit 6c270dc4 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

oneshot: Fix old banner

Old banner wasn't conffile, but new ones are. But because the old one wasn't,
opg doesn't have its checksum and thus will not overwrite it with new conffile.
parent aec656da
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
if [ "`md5sum /etc/banner | cut -f 1 -d ' '`" = ff598dce1de580401bf2a4e1c24a4489 ]; then
if [ -f /etc/banner-opkg ]; then
mv /etc/banner-opkg /etc/banner
elif [ -z "`grep /etc/banner /usr/lib/opkg/info/base-files.conffiles`" ]; then
echo /etc/banner >> /usr/lib/opkg/info/base-files.conffiles
sed -i 's|^\(.*/etc/rc.local.*\)| /etc/banner ff598dce1de580401bf2a4e1c24a4489\n\1|' /usr/lib/opkg/status
fi
fi
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