summaryrefslogtreecommitdiff
path: root/busybox/busybox-1.00-rc2/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'busybox/busybox-1.00-rc2/postinst')
-rw-r--r--busybox/busybox-1.00-rc2/postinst25
1 files changed, 25 insertions, 0 deletions
diff --git a/busybox/busybox-1.00-rc2/postinst b/busybox/busybox-1.00-rc2/postinst
new file mode 100644
index 0000000000..36d8190f80
--- /dev/null
+++ b/busybox/busybox-1.00-rc2/postinst
@@ -0,0 +1,25 @@
+#!/bin/busybox ash
+
+action="$1"
+oldversion="$2"
+
+umask 022
+
+if /bin/busybox [ "$action" != configure ]
+then
+ exit 0
+fi
+
+. /etc/default/functions
+
+setup_init_hwclock() {
+ updatercd hwclock.sh start 50 S . stop 25 0 1 6 .
+ /etc/init.d/hwclock.sh restart
+}
+
+/bin/busybox ash /usr/bin/update-alternatives --install /bin/vi vi /bin/busybox 100
+/bin/busybox ash /usr/bin/update-alternatives --install /bin/sh sh /bin/busybox 100
+
+setup_init_hwclock
+
+exit 0