Compare commits
No commits in common. "c37880a3b0011c318fc232747afb199f28fba29c" and "524759fdffb5016bd7dd501017f411a8344ecb2d" have entirely different histories.
c37880a3b0
...
524759fdff
|
@ -38,10 +38,6 @@ async def start_battery_service(remote_host):
|
||||||
# command = "/opt/victronenergy/serial-starter/start-tty.sh ttyUSB1"
|
# command = "/opt/victronenergy/serial-starter/start-tty.sh ttyUSB1"
|
||||||
return await run_remote_command(remote_host, command)
|
return await run_remote_command(remote_host, command)
|
||||||
|
|
||||||
async def resize(remote_host):
|
|
||||||
command = "sh /opt/victronenergy/swupdate-scripts/resize2fs.sh"
|
|
||||||
return await run_remote_command(remote_host, command)
|
|
||||||
|
|
||||||
async def upload_files(remote_host):
|
async def upload_files(remote_host):
|
||||||
file_location_mappings = {
|
file_location_mappings = {
|
||||||
"rc.local": "/data/",
|
"rc.local": "/data/",
|
||||||
|
@ -104,16 +100,13 @@ async def main(remote_host):
|
||||||
#### 3. import pika ####
|
#### 3. import pika ####
|
||||||
print("Import pika!")
|
print("Import pika!")
|
||||||
print(await import_pika(remote_host))
|
print(await import_pika(remote_host))
|
||||||
#### 4. resize /dev/root #####
|
# ##### 4. stop battery service ######
|
||||||
print("Resize /dev/root now!")
|
|
||||||
print(await resize(remote_host))
|
|
||||||
# ##### 5. stop battery service ######
|
|
||||||
# print("Stop battery service!")
|
# print("Stop battery service!")
|
||||||
# print(await stop_battery_service(remote_host))
|
# print(await stop_battery_service(remote_host))
|
||||||
##### 6. run rc.local ######
|
##### 5. run rc.local ######
|
||||||
print("Run rc.local to set password, timezone and cp battery folder!")
|
print("Run rc.local to set password, timezone and cp battery folder!")
|
||||||
print(await run_rclocal(remote_host))
|
print(await run_rclocal(remote_host))
|
||||||
# ##### 7. start battery service ######
|
# ##### 6. start battery service ######
|
||||||
# print("Start battery service!")
|
# print("Start battery service!")
|
||||||
# print(await start_battery_service(remote_host))
|
# print(await start_battery_service(remote_host))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue