Skip to content

Commit

Permalink
Update piclone problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks Xie committed Jul 3, 2017
1 parent eb6ed49 commit 536649e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion pidesktop-base/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#!/bin/bash

sudo chmod +x /usr/share/PiDesktop/script/*
Expand Down
10 changes: 5 additions & 5 deletions pidesktop-base/usr/share/PiDesktop/python/diskClone.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python
import os;
from pppBoot import Manager;
#from pppBoot import Manager;

def runCommand(command):
print command;
Expand Down Expand Up @@ -28,8 +28,8 @@ def chekSD():
num += 1;
else:
sd = line.strip('\r\n');
if num == 0:
newPartition(sd);
# if num == 0:
# newPartition(sd);
diskClone();
else:
print 'Please insert mSATA disk.';
Expand All @@ -39,8 +39,8 @@ def diskClone():
print message;
command = 'piclone';
runCommand(command);
m = Manager();
m.runask();
# m = Manager();
# m.runask();

if __name__ == "__main__":
chekSD();
4 changes: 3 additions & 1 deletion pidesktop-base/usr/share/PiDesktop/script/ppp-hdclone
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#then
# echo ""
#else
exec '/usr/share/PiDesktop/python/diskClone.py'
# exec '/usr/share/PiDesktop/python/diskClone.py'
#fi

/usr/share/PiDesktop/python/diskClone.py
sudo /usr/share/PiDesktop/python/pppBoot.py

0 comments on commit 536649e

Please sign in to comment.