File: install.sh

package info (click to toggle)
snoopy 1.3-13
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 208 kB
  • ctags: 15
  • sloc: sh: 136; ansic: 92; makefile: 17
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?"