mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
rc: remove cruft, it's gone out of style
See: https://github.com/pfsense/pfsense/commit/e93db4a1f8e
This commit is contained in:
parent
68739fbbb7
commit
7c65a076d6
@ -290,24 +290,6 @@ function cleanup_backups()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function set_device_perms() {
|
||||
$devices = array(
|
||||
'pf' => array( 'user' => 'root',
|
||||
'group' => 'proxy',
|
||||
'mode' => 0660),
|
||||
);
|
||||
|
||||
foreach ($devices as $name => $attr) {
|
||||
$path = "/dev/$name";
|
||||
if (file_exists($path)) {
|
||||
chown($path, $attr['user']);
|
||||
chgrp($path, $attr['group']);
|
||||
chmod($path, $attr['mode']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function make_config_revision_entry($desc = '')
|
||||
{
|
||||
global $config;
|
||||
|
||||
@ -61,7 +61,6 @@ echo "Starting device manager (devd)...";
|
||||
system_console_mute();
|
||||
exec('/sbin/devd');
|
||||
sleep(1);
|
||||
set_device_perms();
|
||||
system_console_unmute();
|
||||
echo "done.\n";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user