[OpenIndiana-discuss] Customized startup commands?

Ray Arachelian ray at arachelian.com
Sun Oct 9 15:15:13 UTC 2011


Just do this:

echo "#!/bin/sh" > /etc/rc3.d/S99devfsadm-C
echo "devfsadm -C" >> /etc/rc3.d/S99devfsadm-C
chmod 755 /etc/rc3.d/S99devfsadm-C

And you're done.  It's not hard at all.


Or if you insist on having an actual file named rc.local, do this:

Put your rc.local in /etc/init.d then chmod 755 /etc/rc.local and then
ln  /etc/init.d/rc.local /etc/rc3.d/S99rc.local and you're done.

What's so hard about that?


On 10/09/2011 10:45 AM, Dan Swartzendruber wrote:
> Sure, but if you just have one simple command, it's really overkill to write
> a manifest and such.  All I want is to do "devfsadm -C" to clean stale
> devices.  Oh well...




More information about the OpenIndiana-discuss mailing list