Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 30ec728ed4276f3b436af2a051af6273 > scriptlet

FreeWnn-1.1.1-0.a017.2mdk.i586.rpm

PREIN

/bin/sh
if ! grep -q '^wnn:' /etc/group
then
        /usr/sbin/groupadd wnn
        if  ! grep -q '^wnn:' /etc/passwd
        then
                /usr/sbin/useradd -g wnn -M wnn
        fi
fi
# without this the shutting down takes forever to reach timeout
if ! grep ^jserver /etc/services ; then
	echo -e "jserver\t22273/tcp" >> /etc/services
fi

POSTIN

/bin/sh
/sbin/chkconfig --add jserver

cd /usr/lib/wnn/ja_JP/dic/pubdic
/usr/bin/Wnn4/wnntouch *.*

POSTUN

/bin/sh
if [ $1 = 0 ]; then
   /sbin/chkconfig --del jserver
fi