mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-07 09:41:39 +01:00
This moves all packages from testing to unmaintained which have not been updated for atleast 6 months. If you are affected by this commit please follow this proceddure: * make sure your packages build on all architectures * move your pacakge(s) back to testing * if you want to keep this package and can maintain it (or find somebody to maintain it for you) for a minimum of 6 months ask it to be moved to community
37 lines
938 B
Plaintext
37 lines
938 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
ISSUE_BACKUP_FILE="/etc/issue.linux-logo.backup"
|
|
ISSUE_NET_BACKUP_FILE="/etc/issue.net.linux-logo.backup"
|
|
|
|
start() {
|
|
ebegin "Starting linux_logo"
|
|
|
|
if [ ! -x /usr/bin/linux_logo ]
|
|
then
|
|
eerror "ERROR: linux_logo not found !"
|
|
return 1
|
|
fi
|
|
|
|
ebegin " Creating /etc/issue"
|
|
cp /etc/issue ${ISSUE_BACKUP_FILE} 2> /dev/null
|
|
/usr/bin/linux_logo ${LOGO} ${OPTIONS} -F "${FORMAT}" > /etc/issue
|
|
eend $? " Failed to create /etc/issue"
|
|
|
|
if [ -f /etc/issue.net ]
|
|
then
|
|
ebegin " Creating /etc/issue.net"
|
|
cp /etc/issue.net ${ISSUE_NET_BACKUP_FILE} 2> /dev/null
|
|
/usr/bin/linux_logo ${LOGO} ${OPTIONS} -F "${FORMATNET}" > \
|
|
/etc/issue.net
|
|
eend $? " Failed to create /etc/issue.net"
|
|
fi
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping linux_logo"
|
|
[ -f ${ISSUE_NET_BACKUP_FILE} ] && \
|
|
mv ${ISSUE_NET_BACKUP_FILE} /etc/issue.net 2> /dev/null
|
|
[ -f ${ISSUE_BACKUP_FILE} ] && \
|
|
mv ${ISSUE_BACKUP_FILE} /etc/issue 2> /dev/null
|
|
}
|