# $Paefchen: home/as/.csh/rcdscripts.csh,v 1.1 2008/01/07 06:03:02 as Exp $
# CSHRC_RELOAD: YES
# CSHRC_ROMPTONLY: YES
# CSHRC_OSONLY: freebsd
# CSHRC_DESCR: Hilfs-Skripts neu laden
if (! $?CSHRC_MD_RCDSCRIPTS_PATH) then
set _paths
foreach _dir (/etc/rc.d `rcdgetconfigarg local_startup`)
if (-d $_dir) set _paths = "${_paths} ${_dir}"
end
unset _dir
else
set _paths = $CSHRC_MD_RCDSCRIPTS_PATH
endif
whan "suche RC.D skripts in ${_paths}: "
# gefundene Skripts durchgehen und aliase setzen
foreach _script (`find $_paths -type f -exec test -x {} \; -print | tr "\n" ' '`)
whan $_script:t:r
alias "rc_$_script:t:r" "$_script"
end
unset _script _path