Last active
August 29, 2015 14:02
-
-
Save waja/29b9e41113f6587fffb9 to your computer and use it in GitHub Desktop.
Script to generate motd trailer for unsupported squeeze-lts packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wget --no-check-certificate https://gist.github.com/waja/29b9e41113f6587fffb9/raw/squeeze-lts -O /etc/cron.daily/squeeze-lts && chmod +x /etc/cron.daily/squeeze-lts | |
# TMP=$(mktemp); wget --no-check-certificate https://gist.github.com/waja/29b9e41113f6587fffb9/raw/.bash_profile -O ${TMP} && grep -v "^#" ${TMP} >> ~/.bash_profile | |
if [ ! -f /tmp/motd.squeeze-lts.trail ]; then | |
sh /etc/cron.daily/squeeze-lts | |
fi | |
echo ""; echo "Not supported packages by squeeze LTS (wiki.debian.org/LTS/Development):"; echo "" | |
cat /tmp/motd.squeeze-lts.trail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "`cat /etc/debian_version | awk -F. {'print $1"."$2'}`" = "6.0" ]; then | |
if [ -x /usr/bin/check-support-status ]; then | |
check-support-status | grep "^ - " > /tmp/motd.squeeze-lts.trail | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment