12345678910111213141516171819 |
- from dulwich import porcelain
- import os
- def ro():
- os.system("/etc/init.d/S01mount_ro start")
- def rw():
- os.system("/etc/init.d/S01mount_ro stop")
- localrep = "/home"
- rw()
- porcelain.pull(localrep)
- os.remove("/root/CocoPi.py")
- ro()
- os.system('reboot')
|