summaryrefslogtreecommitdiff
path: root/busybox/files/postinst
blob: 36d8190f80a3f599bd144160ef26834aa9c6a9f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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