Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > 3366b9b36528ac6731eb90f87cbc4d0e > scriptlet

udev-095-14.32.el5.i386.rpm

PREIN

/bin/sh
# kill daemon if we are not in a chroot
if [ -f /proc/1/exe -a -d /proc/1/root ] && [ / -ef /proc/1/root ]; then
   if test -x /sbin/udevd -a -x /sbin/pidof ; then
      pid=$(/sbin/pidof -c udevd)
      while [ -n "$pid" ]; do
      	    for p in $pid; do
            	kill $hard $p 2>/dev/null
            done
            sleep 0.2
            pid=$(/sbin/pidof -c udevd)
            hard="-9"
      done
   fi
fi
exit 0

PREUN

/bin/sh
if [ "$1" -eq 0 -a -f /etc/rc.d/init.d/udev ]; then
     if [ -f /proc/1/exe -a -d /proc/1/root ] && [ / -ef /proc/1/root ]; then
          if [ -x /sbin/pidof ]; then
              pid=$(/sbin/pidof -c udevd)
              while [ -n "$pid" ]; do
                  for p in $pid; do
                       kill $hard $p 2>/dev/null
                  done
                  sleep 0.2
                  pid=$(/sbin/pidof -c udevd)
                  hard="-9"
              done
          fi
     fi
     /sbin/chkconfig --del udev
fi
if [ "$1" -eq 0 ]; then
     /sbin/chkconfig --del udev-retry
fi
/sbin/chkconfig --del udev-post >/dev/null 2>&1 || :
exit 0

POSTIN

/bin/sh
# start daemon if we are not in a chroot
if [ -f /proc/1/exe -a -d /proc/1/root ] && [ / -ef /proc/1/root ]; then
        /sbin/udevd -d >/dev/null 2>&1 || :
fi

exit 0

Triggers

dev <= 0:3.12-1

/bin/sh
if [ $2 = 0 ]; then
	if [ -x /sbin/MAKEDEV ]; then
		/sbin/MAKEDEV null
	else
		/bin/mknod /dev/null c 1 3
	fi
	/sbin/start_udev >/dev/null 2>&1
	if [ -e /dev/mapper/control -a -x /sbin/lvm ]; then
		/sbin/lvm vgmknodes >/dev/null 2>&1
	fi
fi
exit 0