2015-10-06 12:50:43 +00:00
|
|
|
# post-installation script
|
|
|
|
set -x
|
|
|
|
|
2015-10-15 20:16:38 +00:00
|
|
|
# base system modifications
|
|
|
|
sudo sed -i -e '/^\/opt\/bootlocal/ i' /opt/bootsync.sh
|
2017-12-14 10:27:06 +00:00
|
|
|
sudo sh -c 'echo -e "\nusername '"'"'gns3'"'"', password '"'"'gns3'"'"'\nRun filetool.sh -b if you want to save your changes" >> /etc/issue'
|
2015-10-15 20:16:38 +00:00
|
|
|
echo 'etc/issue' >> /opt/.filetool.lst
|
|
|
|
echo 'etc/shadow' >> /opt/.filetool.lst
|
|
|
|
|
2015-10-06 12:50:43 +00:00
|
|
|
# save changes
|
|
|
|
rm -f .ash_history
|
|
|
|
filetool.sh -b sda1
|
|
|
|
|
|
|
|
# write 0, not really necessary
|
|
|
|
#sudo dd if=/dev/zero of=/mnt/sda1/zero ; sudo rm -f /mnt/sda1/zero
|
2015-10-15 20:16:38 +00:00
|
|
|
|
|
|
|
exit 0
|