|
|
|
@ -6,7 +6,7 @@ |
|
|
|
# Config |
|
|
|
# Config |
|
|
|
MOTD="/etc/motd" |
|
|
|
MOTD="/etc/motd" |
|
|
|
INSTPATH="/etc/bmotd.sh" |
|
|
|
INSTPATH="/etc/bmotd.sh" |
|
|
|
|
|
|
|
CACHEPATH="/var/cache/bmotd/" |
|
|
|
# Check if root |
|
|
|
# Check if root |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -24,7 +24,6 @@ main () { |
|
|
|
test -f ~/.pisscache || PKG_REFRESH=1 |
|
|
|
test -f ~/.pisscache || PKG_REFRESH=1 |
|
|
|
[[ $(date +%H%M) == "1510" ]] && PKG_REFRESH=1 |
|
|
|
[[ $(date +%H%M) == "1510" ]] && PKG_REFRESH=1 |
|
|
|
if [ $PKG_REFRESH ]; then |
|
|
|
if [ $PKG_REFRESH ]; then |
|
|
|
echo "odswiezam" |
|
|
|
|
|
|
|
case "$OSID" in |
|
|
|
case "$OSID" in |
|
|
|
debian|osmc|linuxmint) |
|
|
|
debian|osmc|linuxmint) |
|
|
|
PKG_NU=$(apt-get --just-print upgrade | awk '/^[0-9]/ { print $1; exit }') |
|
|
|
PKG_NU=$(apt-get --just-print upgrade | awk '/^[0-9]/ { print $1; exit }') |
|
|
|
|