summaryrefslogtreecommitdiff
path: root/packages/busybox/files/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'packages/busybox/files/postinst')
-rw-r--r--packages/busybox/files/postinst25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/busybox/files/postinst b/packages/busybox/files/postinst
index e69de29bb2..36d8190f80 100644
--- a/packages/busybox/files/postinst
+++ b/packages/busybox/files/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