Update linupx-scripts.sh
This commit is contained in:
@@ -803,7 +803,7 @@ RECONFIGURE_NETWORK(){
|
||||
SCRIPT_MENU() {
|
||||
if [ -f ${FOLDER}/lastrun ]; then
|
||||
LASTRUND=$(stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f1)
|
||||
LASTRUNT=$((stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f2) | cut -d '.' -f1)
|
||||
LASTRUNT=$(stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f2 | cut -d '.' -f1)
|
||||
else
|
||||
LASTRUND='never'
|
||||
LASTRUNT=''
|
||||
@@ -818,7 +818,7 @@ SCRIPT_MENU() {
|
||||
echo -e "Domain: ${idsCL[Cyan]}$(hostname -d)${idsCL[Default]}"
|
||||
echo
|
||||
echo -e "Updates last run on: ${idsCL[LightGreen]}${LASTRUND} ${LASTRUNT}${idsCL[Default]}"
|
||||
DIVIDER . . 75
|
||||
DIVIDER_C . . 75
|
||||
OS=($(detect_os))
|
||||
width=14
|
||||
printf "%-${width}s: %s\n" "Machine" "${OS[0]}"
|
||||
@@ -826,7 +826,7 @@ SCRIPT_MENU() {
|
||||
printf "%-${width}s: %s\n" "Derivative" "${OS[2]}"
|
||||
printf "%-${width}s: %s\n" "Version" "${OS[3]}"
|
||||
printf "%-${width}s: %s\n" "Codename/Rev" "${OS[4]}"
|
||||
DIVIDER . lightgreen 75
|
||||
DIVIDER_C . LightGreen 75
|
||||
echo
|
||||
echo -e " [${idsCL[Yellow]}1${idsCL[Default]}] Check for Updates/Upgrades"
|
||||
echo -e "*[${idsCL[Yellow]}2${idsCL[Default]}] Run Updates"
|
||||
|
||||
Reference in New Issue
Block a user