Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/bin/bash
  2. # 2.27
  3. require=2.28
  4. version=$(ldd --version | grep GLIBC | tail -c 5)
  5. utfall=$(awk 'BEGIN { print ('$version' >= '$require') ? 0 : 1 }')
  6.  
  7. if [ $utfall == 1 ]
  8. then
  9. lxterminal -e 'printf "You have glibc version '$version'. The required version is '$require' or higher.\nThe program is unable to start.\nPlease update to a newer Linux version.\n"; read -p "Prees any key..."'
  10. else
  11. ./mall
  12. fi
Add Comment
Please, Sign In to add comment