Revision a72b320e
Added by Viktor Gurov over 4 years ago
src/etc/inc/services.inc | ||
---|---|---|
2438 | 2438 |
if (!is_dir("{$g['unbound_chroot_path']}/dev")) { |
2439 | 2439 |
safe_mkdir("{$g['unbound_chroot_path']}/dev"); |
2440 | 2440 |
} |
2441 |
exec("/sbin/mount -t devfs devfs " . escapeshellarg("{$g['unbound_chroot_path']}/dev")); |
|
2441 |
$status = "/sbin/mount | /usr/bin/grep " . escapeshellarg("{$g['unbound_chroot_path']}/dev"); |
|
2442 |
if (!trim($status)) { |
|
2443 |
exec("/sbin/mount -t devfs devfs " . escapeshellarg("{$g['unbound_chroot_path']}/dev")); |
|
2444 |
} |
|
2442 | 2445 |
} else { |
2443 | 2446 |
if (is_dir("{$g['unbound_chroot_path']}/dev")) { |
2444 | 2447 |
exec("/sbin/umount -f " . escapeshellarg("{$g['unbound_chroot_path']}/dev")); |
Also available in: Unified diff
Unbound devfs mount check. Fixes #11456