File: getkernelversion

package info (click to toggle)
proftpd 1.2.0pre1-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,468 kB
  • ctags: 2,106
  • sloc: ansic: 19,206; sh: 1,640; makefile: 480; perl: 235
file content (6 lines) | stat: -rw-r--r-- 238 bytes parent folder | download
1
2
3
4
5
6
#!/bin/sh -e
head -3 /usr/src/linux/Makefile | \
        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)