diff options
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/ogOperations.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index 85c8c0a..bbc3b1a 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -35,3 +35,8 @@ def procsoftware(disk, partition, path): def prochardware(path): result = subprocess.check_output([OG_PATH + 'interfaceAdm/InventarioHardware', path], shell=True) return result.decode('utf-8') + +def procsetup(disk, cache, cachesize, partlist): + for part in partlist: + cfg = 'dis=' + disk + '*che=' + cache + '*tch=' + cachesize + '!par=' + part["partition"] + '*cpt='+part["code"] + '*sfi=' + part['filesystem'] + '*tam=' + part['size'] + '*ope=' + part['format'] + '%' + subprocess.check_output([OG_PATH + 'interfaceAdm/Configurar', disk, cfg], shell=True) |