i have a small (but i think that useful) draft. what about putting suid bit to mplayer binary? if mplayer doesn't have it, then after starting write at stdout about failed this ioctl rtc_irqp_set 1024. suid bit should fix this problem.
but there is another way to "fix" this problem. set via system's sysctl
config file (/etc/sysctl.conf) during starting system this value:
dev.rtc.max-user-freq = 1024
and mplayer can set this rtc frequency without suid bit.
i vote for second solution, and add into post script check, if this
value is presented in sysctl.conf, if not, then add it and run sysctl -p
to refresh this new setting.
--
virtual.phuture.sk, Linux Version 2.4.20-2mdk, Mandrake Cooker
One 225MHz Cyrix MII Processor, 112M RAM, 448.92 Bogomips
Uptime 2 days 7 hours 21 minutes, Load Average 0.03, 0.03, 0.00
msg86629/pgp00000.pgp
Description: PGP signature
