Re: sfxload at boot-up
"Richard L. Alhama" <keyoz@iln.csi.com.ph> writes:
| How can I make sfxload load synthgm.sbk at boot time. The account for
| myself can load synthgm.sbk.
You can create a script to do this in /etc/init.d and link to that
script from one of the rc<n>.d directories. Depending on your default
level (if you haven't mucked with /etc/inittab I believe Debian's
default level is 2), that would be /etc/rc2.d/. I believe the file
/etc/init.d/README tells you where to look to see how things are
handled for Debian GNU/Linux startup. Essentially you create a script
in /etc/init.d that looks something like:
#! /bin/sh
if [ -x /usr/bin/sfxload ]
then
/usr/bin/sfxload <fontfile>
fi
Where <fontfile> is the name, and full path, of the sound font file
you want to load at boot time. Save that under a file named something
like /etc/init.d/soundfont then go into /etc/rc2.d/ and create a link
to it. The one hitch is that you have to make sure that the script is
run at the right time. For a PnP sound card that means after the PnP
initialization has been done and, if your sound card support is a
module, after the sound modules is loaded, or at least after kerneld
is started. Generally, for something like this, I like to put them as
almost the last thing executed so I'd do
cd /etc/rc2.d
ln -s ../init.d/soundfont S98soundfont
Things in the /etc/rc<n>.d/ directory are executed in
alphabetical/numerical order with S00* files being executed first and
S99* files last.
Good Luck!
Gary
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: