<u>'''INSTALL'''</u>
{{Code|Code=<pre># App specific variables
export WASNAM='pmagic';
export WALNAM='Parted Magic';
# Constant variables--DO NOT CHANGE
export NBPATH='/usr/share/amahi-netboot/tftp';
export HDAIP=`ifconfig eth0 <nowiki>|</nowiki> grep "inet addr" <nowiki>|</nowiki> awk '<nowiki>{</nowiki> print $2 <nowiki>}</nowiki>' <nowiki>|</nowiki> awk 'BEGIN { FS=":" <nowiki>}</nowiki> <nowiki>{</nowiki> print $2 <nowiki>}</nowiki>'`;
# Start of $WALNAM Install
sudo ./install-$WASNAM.sh;
cd ..;
rm -rf elevated;}}</pre>
<u>'''UNINSTALL'''</u>
{{Code|Code=<pre># App specific variables
export WASNAM='pmagic';
export WAPATH='/var/hda/web-apps/pmagic/html';
sudo ./uninstall-$WASNAM.sh;
cd ..;
rm -rf elevated;}}</pre>