murasaki.call
Last modified:
Mon Sep 29 22:23:27 PDT 2003
Agent program refers to this to find scripts.
This has 2 kinds of format such as below.
-
the script depending on module
-
the script depending on device
The script file is called with "start" as the first argument after
loading modules. On the other hand, It is called with "stop" after
unloading modules.
[Format]
[Format for a module]
-
Write the module name + colon(:)
-
Write the script name by space to separate.
The plural modules are able to be specified.
module-1: script-1 script-2
[Format for a device]
It is a same format except difference between "[device name]" and
"module name".
-
Write '[' + device name + ']' + colon(:)
-
Write the script name by space to separate.
The plural modules are able to be specified.
[device-A]: script-1 script-2 script-3
[Example]
NETWORK device script "net" is following.
It uses "ifup" for up network, "ifdown" for down network.
$INTERFACE is a network name which kernel delivers.
#!/bin/sh
NETUP_CMD=ifup
NETDOWN_CMD=ifdown
case "$1" in
start)
$NETUP_CMD $INTERFACE
;;
stop)
$NETDOWN_CMD $INTERFACE
;;
esac
[Relationship]
-
The script "net" is specified for Network device.
-
The scripts should be put on /etc/murasaki/bin
(/etc/murasaki for 0.5 and older) to
guard against mismatching file name.
Shuu Yamaguchi :
shuu@dotAster.com