Esempio n. 1
0
def tar_gz(in_file, out_dir, clear=True):
    if clear:
        clear_dir(out_dir)
    sudo_call("tar", ["xaf", path.expanduser(in_file), "-C", path.abspath(out_dir)])
    sudo_call("sync")
Esempio n. 2
0
 def create(self):
     sudo_call("./tools/mkcard.sh", [self.device, self.boot_name, self.filesystem_name])
Esempio n. 3
0
def gz(in_file):
    sudo_call("gunzip", [in_file])
    return in_file[:-3]