Skip to content

Instantly share code, notes, and snippets.

@waja
Last active August 29, 2015 14:02
Show Gist options
  • Save waja/29b9e41113f6587fffb9 to your computer and use it in GitHub Desktop.
Save waja/29b9e41113f6587fffb9 to your computer and use it in GitHub Desktop.
Script to generate motd trailer for unsupported squeeze-lts packages
# 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
#!/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