Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 58edfaf70e820fad6a34004c22368f15 > scriptlet

tpb-0.4.2-2mdk.ppc.rpm

POSTIN

/bin/sh
modulesconf=/etc/modules.conf
if ! `grep -q "/dev/nvram" $modulesconf` ; then
	echo "adding entries for /dev/nvram to your $modulesconf"
	cat >> $modulesconf << EOF

# nvram for tpb
alias /dev/misc/nvram nvram
alias /dev/nvram /dev/misc/nvram
EOF
fi

consoleperms=/etc/security/console.perms
if ! `grep -q "/dev/nvram" $consoleperms` ; then
	echo "adding entry for /dev/nvram to your $consoleperms"
	cat >> $consoleperms << EOF

# allow user access to nvram for tpb
<console>  0600 /dev/nvram   0600 root
EOF
fi