summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/busybox/files/postinst
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
committerRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
commit4b46c1f6e891b1ddd5968536440b888661fade3e (patch)
treee0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/busybox/files/postinst
downloadpoky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/busybox/files/postinst')
-rw-r--r--openembedded/packages/busybox/files/postinst25
1 files changed, 25 insertions, 0 deletions
diff --git a/openembedded/packages/busybox/files/postinst b/openembedded/packages/busybox/files/postinst
new file mode 100644
index 0000000000..36d8190f80
--- /dev/null
+++ b/openembedded/packages/busybox/files/postinst
@@ -0,0 +1,25 @@
1#!/bin/busybox ash
2
3action="$1"
4oldversion="$2"
5
6umask 022
7
8if /bin/busybox [ "$action" != configure ]
9then
10 exit 0
11fi
12
13. /etc/default/functions
14
15setup_init_hwclock() {
16 updatercd hwclock.sh start 50 S . stop 25 0 1 6 .
17 /etc/init.d/hwclock.sh restart
18}
19
20/bin/busybox ash /usr/bin/update-alternatives --install /bin/vi vi /bin/busybox 100
21/bin/busybox ash /usr/bin/update-alternatives --install /bin/sh sh /bin/busybox 100
22
23setup_init_hwclock
24
25exit 0