File: getkernelversion

package info (click to toggle)
proftpd 1.2.0pre9-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,392 kB
  • ctags: 2,648
  • sloc: ansic: 24,012; sh: 1,754; makefile: 536; perl: 281
file content (6 lines) | stat: -rw-r--r-- 250 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
#!/bin/sh -e
head -3 /usr/src/linux/Makefile 2> /dev/null| \
        sed -e 's/.*\ //' | \
        ( read a ; read b ; read c;
	  if expr "$c" ">=" "105" > /dev/null; then echo "privs"; fi
	  if expr "$b" ">=" "2" > /dev/null; then echo "privs"; fi)