From 207f5bd024b274517c31afb0bbfa4eef46b99ae9 Mon Sep 17 00:00:00 2001 From: Kees Jongenburger Date: Fri, 8 Jun 2012 10:13:48 +0200 Subject: [PATCH] Adding a post-install script. Adding a post-install script to be run on the MINIX instance to perform the transition from a clean installation to an installation with support for shared libraries and such. --- projects/autoinstall/Makefile | 2 + projects/autoinstall/post-install.sh | 89 ++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100755 projects/autoinstall/post-install.sh diff --git a/projects/autoinstall/Makefile b/projects/autoinstall/Makefile index d4b1275..25ef071 100644 --- a/projects/autoinstall/Makefile +++ b/projects/autoinstall/Makefile @@ -24,4 +24,6 @@ minix.postinst.8g.img:minix.base.8g.img post-install/02-setup.expect post-install/03-keesj.expect mv minix.postinst.8g.tmp.img minix.postinst.8g.img + echo "now start the image using the startup.sh script" + echo "and scp and run post-install.sh to finish installation" diff --git a/projects/autoinstall/post-install.sh b/projects/autoinstall/post-install.sh new file mode 100755 index 0000000..647eb39 --- /dev/null +++ b/projects/autoinstall/post-install.sh @@ -0,0 +1,89 @@ +#!/bin/sh +cat <> /root/.ashrc + fi + + if [ -f /root/.indent.pro ] + then + echo "indent configuration already copied" + else + cp /usr/share/misc/indent.pro /root/.indent.pro + fi +)