summaryrefslogtreecommitdiff
path: root/rc/bin/inst/finish
diff options
context:
space:
mode:
Diffstat (limited to 'rc/bin/inst/finish')
-rwxr-xr-xrc/bin/inst/finish19
1 files changed, 19 insertions, 0 deletions
diff --git a/rc/bin/inst/finish b/rc/bin/inst/finish
new file mode 100755
index 000000000..e616e64e1
--- /dev/null
+++ b/rc/bin/inst/finish
@@ -0,0 +1,19 @@
+#!/bin/rc
+
+# desc: finish the installation and reboot
+# prereq: bootsetup
+# mustdo:
+
+switch($1) {
+case checkdone
+ finish=ready
+ export finish
+
+case go
+ if(~ $cdboot yes){
+ echo 'Congratulations; you''ve completed the install.'
+ echo
+ halt
+ }
+ stop go finished
+}