testing scripts

This commit is contained in:
brent s 2017-05-04 02:59:12 -04:00
parent a60d4780ba
commit a9180c8212
3 changed files with 15 additions and 4 deletions

View File

@ -325,10 +325,15 @@ class aif(object):
for x in xmlobj.find('bootloader').attrib: for x in xmlobj.find('bootloader').attrib:
aifdict['system']['bootloader'][x] = xmlobj.find('bootloader').attrib[x] aifdict['system']['bootloader'][x] = xmlobj.find('bootloader').attrib[x]
# The script setup... # The script setup...
for x in xmlobj.find('scripts'): # We do this later on.
scripttype = # for x in xmlobj.find('scripts'):
if not aifdict['scripts'][scripttype]: # if x.attrib['bootstrap'].lower() in ('true', '1'):
aifdict['scripts'][scripttype] = {} # scripttype = 'pre'
# else:
# scripttype = 'post'
# if not aifdict['scripts'][scripttype]:
# aifdict['scripts'][scripttype] = {}
# aifdict['scripts'][scripttype][int(x.attrib['order'])] = {}
return(aifdict) return(aifdict)


class archInstall(object): class archInstall(object):

3
script-samples/post.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash

echo 'This is another sample script. It would run after the install has completed.'

3
script-samples/pre.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash

echo 'This is an example script. It currently does nothing. You can run anything here. It would run before disk partitioning.'