IMAGEFILE=/media/mmc2/debian.img MOUNTPOINT=/debian/ PARAMETER3=value3 PARAMETER4=value4
#!/bin/sh #first read our config file: . /home/user/.debchrootrc #now do the real work...
#... #By this point, all the actual values have been discovered, guessed, prompted for, or otherwise obtained, and assigned into the correct variables. echo '#This file auto-generated by qole's debfooconfigurizer script.' > /home/user/.debchrootrc echo 'IMAGEFILE="'"$IMAGEFILE"'"' > /home/user/.debchrootrc echo 'MOUNTPOINT="'"$MOUNTPOINT"'"' > /home/user/.debchrootrc echo 'PARAMETER3="'"$PARAMETER3"'"' > /home/user/.debchrootrc echo 'PARAMETER4="'"$PARAMETER4"'"' > /home/user/.debchrootrc