mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-24 16:08:11 +01:00
next onewire setup test
This commit is contained in:
parent
60108f0594
commit
f03bb14143
1 changed files with 2 additions and 0 deletions
|
@ -50,7 +50,9 @@ class CraftBeerPiCli():
|
||||||
f.write(line)
|
f.write(line)
|
||||||
destfile="/boot/config.txt"
|
destfile="/boot/config.txt"
|
||||||
|
|
||||||
|
#copy and remove afterwards as mv will work, but raise an error message due to different file owners
|
||||||
shutil.os.system('sudo cp "{}" "{}"'.format(configtempfile,destfile))
|
shutil.os.system('sudo cp "{}" "{}"'.format(configtempfile,destfile))
|
||||||
|
shutil.os.system('rm -rf "{}"'.format(configtempfile))
|
||||||
|
|
||||||
print("/boot/config.txt created")
|
print("/boot/config.txt created")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue