File: install.sh

package info (click to toggle)
snoopy 1.3-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 104 kB
  • ctags: 16
  • sloc: ansic: 92; sh: 59; makefile: 57
file content (15 lines) | stat: -rwxr-xr-x 556 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

#installation script for snoopy (for system wide installs)
#Run as root!
#$Id: install.sh,v 1.3 2000/12/10 18:48:30 marius Exp $

[ -x /lib/snoopy.so ] && {
  touch /etc/ld.so.preload
  [ -w /etc/ld.so.preload ] && {
    [ `grep -c '/lib/snoopy.so'    /etc/ld.so.preload` == 0 ] && {
      echo     "/lib/snoopy.so" >> /etc/ld.so.preload
      echo "Installed"
    } || echo "snoopy already installed... updated to newest version"
  }   || echo "Failed, are you installing this as root?"
}     || echo "Failed, are you installing this as root?"