1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-02 00:23:17 +00:00

Updated installer to better support ChromeOS

This commit is contained in:
Bryan Roe
2021-01-11 13:05:04 -08:00
parent 5ca3b3cc6a
commit 12230f8ce7
2 changed files with 11 additions and 4 deletions

View File

@@ -2279,7 +2279,14 @@ function serviceManager()
case 'BOOT_START':
case 'SYSTEM_START':
case 'AUTO_START':
conf.write('start on runlevel [2345]\n');
if (require('os').Name.startsWith('CHROMEOS_'))
{
conf.write('start on started system-services\n');
}
else
{
conf.write('start on runlevel [2345]\n');
}
break;
default:
break;