rc.subr: Add function to find scripts in local_startup directories
authorRobin Hahling <robin.hahling@gw-computing.net>
Sat, 22 Nov 2014 12:08:11 +0000 (13:08 +0100)
committerSascha Wildner <saw@online.de>
Sun, 23 Nov 2014 10:53:30 +0000 (11:53 +0100)
commit684cb317290aa79db9216c3cd0468ba03868fd67
tree6fd4e8494383febf7c10b3eebb9ff4070f56c1d0
parentb2776052b920503cea1a75e1f7b7577bd9c406c7
rc.subr: Add function to find scripts in local_startup directories

* Add 'find_local_scripts()' function which is useful for
service(8).

* Fix reference to function in service.sh. This fixes two issues in
  service(8) for which 'service -e' and 'service -l' would simply fail
  to list local startup scripts.

'find_local_scripts()' has been imported from FreeBSD, where it is
called 'find_local_scripts_new()'.
etc/rc.subr
usr.sbin/service/service.sh