File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
+ from pathlib import Path
2
3
from typing import Dict , List
3
4
4
5
import requests
@@ -44,7 +45,7 @@ class Bridget:
44
45
45
46
def __init__ (self ) -> None :
46
47
self ._bridges : Dict [BridgeFrontendSpec , Bridge ] = {}
47
- self ._settings_manager = Manager ("bridget" , SettingsV2 )
48
+ self ._settings_manager = Manager ("bridget" , SettingsV2 , Path ( "/usr/blueos/userdata/bridget/" ) )
48
49
self ._settings_manager .load ()
49
50
for bridge_settings_spec in self ._settings_manager .settings .specsv2 :
50
51
try :
Original file line number Diff line number Diff line change 1
1
import asyncio
2
+ from pathlib import Path
2
3
3
4
from bridges .bridges import Bridge
4
5
from commonwealth .settings .manager import Manager
@@ -16,7 +17,7 @@ class Ping1DDriver(PingDriver):
16
17
def __init__ (self , ping : PingDeviceDescriptor , port : int ) -> None :
17
18
super ().__init__ (ping , port )
18
19
# load settings
19
- self .manager = Manager (SERVICE_NAME , SettingsV1 )
20
+ self .manager = Manager (SERVICE_NAME , SettingsV1 , Path ( "/usr/blueos/userdata/ping/" ) )
20
21
# our settings file is a list for each sensor type.
21
22
# check the list to find our current sensor in it
22
23
connection_info = self .ping .get_hw_or_eth_info ()
Original file line number Diff line number Diff line change 81
81
82
82
# fix permissions for logging folders:
83
83
find /var/logs/blueos -type d -exec chmod 777 {} \;
84
+ mkdir -p /usr/blueos/userdata/
85
+ find /usr/blueos -type d -exec chmod 777 {} \;
86
+ ln -s /root/.config /home/blueos/.config || true ;
84
87
85
88
# These services have priority because they do the fundamental for the vehicle to work,
86
89
# and by initializing them first we reduce the time users have to wait to control the vehicle.
You can’t perform that action at this time.
0 commit comments