Revision c2151973
Added by Ermal LUÇI almost 15 years ago
etc/inc/service-utils.inc | ||
---|---|---|
40 | 40 |
|
41 | 41 |
$rcfileprefix = "/usr/local/etc/rc.d/"; |
42 | 42 |
function write_rcfile($params) { |
43 |
global $g; |
|
44 |
|
|
43 | 45 |
if (!is_writable("{$rcfileprefix}{$params['file']}") || empty($params['start'])) |
44 | 46 |
return false; |
45 | 47 |
$towrite = "#!/bin/sh\n"; |
Also available in: Unified diff
$g is needed here.