.bash_profile
· 543 B · Bash
Исходник
# 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
| 1 | # 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 |
| 2 | # TMP=$(mktemp); wget --no-check-certificate https://gist.github.com/waja/29b9e41113f6587fffb9/raw/.bash_profile -O ${TMP} && grep -v "^#" ${TMP} >> ~/.bash_profile |
| 3 | if [ ! -f /tmp/motd.squeeze-lts.trail ]; then |
| 4 | sh /etc/cron.daily/squeeze-lts |
| 5 | fi |
| 6 | echo ""; echo "Not supported packages by squeeze LTS (wiki.debian.org/LTS/Development):"; echo "" |
| 7 | cat /tmp/motd.squeeze-lts.trail |
| 8 |
squeeze-lts
· 210 B · Text
Исходник
#!/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
| 1 | #!/bin/bash |
| 2 | if [ "`cat /etc/debian_version | awk -F. {'print $1"."$2'}`" = "6.0" ]; then |
| 3 | if [ -x /usr/bin/check-support-status ]; then |
| 4 | check-support-status | grep "^ - " > /tmp/motd.squeeze-lts.trail |
| 5 | fi |
| 6 | fi |