Revision a9488104
Added by Jim Pingle over 12 years ago
etc/rc.start_packages | ||
---|---|---|
42 | 42 |
|
43 | 43 |
conf_mount_rw(); |
44 | 44 |
|
45 |
$rcfiles = glob("{$rcfileprefix}*.sh");
|
|
45 |
$rcfiles = glob(RCFILEPREFIX . "*.sh");
|
|
46 | 46 |
if (!$rcfiles) |
47 | 47 |
$rcfiles = array(); |
48 | 48 |
else { |
... | ... | |
56 | 56 |
echo " Starting package {$package['name']}..."; |
57 | 57 |
sync_package($package['name']); |
58 | 58 |
start_service($package['name']); |
59 |
unset($rcfiles["{$rcfileprefix}{$package['name']}.sh"]);
|
|
59 |
unset($rcfiles[RCFILEPREFIX . "{$package['name']}.sh"]);
|
|
60 | 60 |
echo "done.\n"; |
61 | 61 |
} |
62 | 62 |
} |
Also available in: Unified diff
Bring in the RCFILEPREFIX as constant fixes from HEAD, since otherwise rc.stop_packages was globbing in the wrong dir and executing the wrong scripts. Also seems to have fixed the "bad fd" error.