MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.17.154.144
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0555) :  /backup4/../bin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //backup4/../bin/kcare-uname
#!/bin/bash

UNAME='/bin/uname'
SED='/bin/sed'

safe_uname=`/usr/bin/kcarectl --uname`
if [ "$safe_uname" = "NONE" -o "$safe_uname" = "" ]; then
  $UNAME "$@"
else
  old_uname=`$UNAME -v`
  if [[ "$old_uname" == *"Debian"* ]]; then
    old_uname=$(echo $old_uname | $SED -E "s/.*Debian (.*)( .*|$)/\1/")
  else
    old_uname=`$UNAME -r`
  fi
  machine=`$UNAME -m`
  if [[ "$old_uname" = *.${machine} && "$safe_uname" != *.${machine} ]]
  then
      safe_uname="${safe_uname}.${machine}"
  fi
  result=`$UNAME "$@"|$SED "s/$old_uname/$safe_uname/g"`
  echo "${result}"
fi

MMCT - 2023