Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 5b31056438e7ab661b848d95a839ef7e > scriptlet

udev-161-10.fc14.i686.rpm

PREIN

/bin/sh
getent group cdrom >/dev/null || /usr/sbin/groupadd -g 11 cdrom || :
getent group tape >/dev/null || /usr/sbin/groupadd -g 33 tape || :
getent group dialout >/dev/null || /usr/sbin/groupadd -g 18 dialout || :
getent group floppy >/dev/null || /usr/sbin/groupadd -g 19 floppy || :

# kill daemon if we are not in a chroot
if test -f /proc/1/exe -a -d /proc/1/root; then
        if test -x /usr/bin/stat -a "$(/usr/bin/stat -Lc '%D-%i' /)" = "$(/usr/bin/stat -Lc '%D-%i' /proc/1/root)"; then
                if test -x /sbin/udevd -a -x /sbin/pidof ; then
                        /sbin/udevadm control --stop-exec-queue
                        pid=$(/sbin/pidof -c udevd)
                        while [ -n "$pid" ]; do
                                for p in $pid; do
                                        kill $hard $p;
                                done
                                pid=$(/sbin/pidof -c udevd)
                                hard="-9"
                        done
                fi
        fi
fi
exit 0

PREUN

/bin/sh
if [ "$1" -eq 0 -a -f /etc/rc.d/init.d/udev ]; then
        if [ -x /sbin/pidof ]; then
                pid=$(/sbin/pidof -c udevd)
                if [ -n "$pid" ]; then
                        kill $pid
                fi
        fi
        /sbin/chkconfig --del udev
fi
if [ "$1" -eq 0 ]; then
        /sbin/chkconfig --del udev-post
#        /usr/bin/systemd-install --system --realize disable udev.service >/dev/null 2>&1 || :
fi
exit 0

POSTIN

/bin/sh
# start daemon if we are not in a chroot
if test -f /proc/1/exe -a -d /proc/1/root; then
        if test "$(/usr/bin/stat -Lc '%D-%i' /)" = "$(/usr/bin/stat -Lc '%D-%i' /proc/1/root)"; then
                /sbin/udevd -d
                /sbin/udevadm control --start-exec-queue
        fi
fi
/sbin/chkconfig --add udev-post
#/usr/bin/systemd-install --system --realize=minimal enable udev.service >/dev/null 2>&1 || :

exit 0

Triggers

udev < 161-7

/bin/sh
[ -c /dev/systty ] && ln -fs tty0 /dev/systty
: