Bellegarde Cedric posted <[EMAIL PROTECTED]>, excerpted
below,  on Sun, 21 Sep 2003 03:26:16 +0200:

> It don't works for me :-/
> Can you make a tar of your /etc/rc.d dir? 
> It will be easiest to see how it work, i don't understand how can you
> call /etc/init.d/halt as *reboot ?

Simply create a link to it, and call the link "reboot" (or in this case
s99reboot or whatever).   The system takes care of the rest.

The same type of idea is often used with other programs,   If U R a vi/vim
fan, for instance, you may use the read-only version "view".  On a Mdk
system, view is the beginning of a symlink chain similar to what follows
(I have ll as aliased to ls -l):

$ which view ... /bin/view

$ ll /bin/view ... /bin/view -> /etc/alternatives/view*

$ ll /etc/alternatives/view ... /etc/alternatives/view -> /bin/vi*

$ ll /bin/vi ... /bin/vi -> /etc/alternatives/vi*

$ ll /etc/alternatives/vi ... /etc/alternatives/vi ->
/usr/bin/vim-enhanced*

$ ll /usr/bin/vim-enhanced ... /usr/bin/vim-enhanced*

The system will invoke vim-enhanced as "view", which the binary detects,
and loads the file read-only.

-- 
Duncan - List replies preferred.   No HTML msgs.
"They that can give up essential liberty to obtain a little
temporary safety, deserve neither liberty nor safety." --
Benjamin Franklin



Reply via email to