Hi Augustin, On Thu, 28 Feb 2008 04:04:11 -0800 "March, Agustin M" <[EMAIL PROTECTED]> wrote:
> It was added as custom script in ngedit. I don't; know about kusu rc. > Could you explain about the kusu rc? Is this tool intended for this > use? There is a directory /etc/rc.kusu.d in which scripts can be placed. During boot a tool called kusurc is executed. kusurc looks in /etc/rc.kusu.d and executes any scripts it finds there. If we want a script to be only run once, we simply tell the script to remove itself at the end. An example of a bash script that does this is: #!/bin/bash # ... your code here ... rm $0 # this line removes this script You will also find Python files in /etc/rc.kusu.d. These files define a class KusuRC that inherits from kusu.core.rcplugin.Plugin. Objects of this class have an attribute called delete. If the delete attribute is set to True, the plugin will be deleted after kusurc executes it. Take a look at /etc/rc.kusu.d/S02KusuSSHHosts.rc.py for example. On line 18 you see self.delete = False. If this was set to True, this plugin would be removed. HTH Mike _______________________________________________ Kusu-users mailing list [email protected] http://mail.osgdc.org/mailman/listinfo/kusu-users
