What is wrong with a simple:
Code:
dd if=/dev/zero of=/mnt/us/swapfile bs=1M count=128
mkswap /mnt/us/swapfile
swapon /mnt/us/swapfile
The only issue I can see in an update script is making sure not to overwrite anything important... so choose a unique name.