added setclock init stuff
[hdw-linux/hdw-linux.git] / packages / base / util-linux / util-linux
index b950aa7..0eac9de 100644 (file)
@@ -30,6 +30,14 @@ if [ "$hdw_status" = "2" ]; then
                mv tmp~ hwclock/hwclock.c &&
                mkdir -p $root/var/lib/hwclock
                        }
+       post_install()  {
+               cp $confdir/setclock_conf $root/etc/conf/setclock
+               chmod 644 $root/etc/conf/setclock
+               cp $confdir/setclock_script $root/etc/init.d/setclock
+               chmod 750 $root/etc/init.d/setclock
+               ln -svf ../setclock $root/etc/init.d/rc2.d/S05setclock
+               ln -svf ../setclock $root/etc/init.d/rc2.d/K95setclock
+                       }
 confopt=""
 make_conf="HAVE_SLN=yes HAVE_KILL=yes"
 install_conf="HAVE_SLN=yes HAVE_KILL=yes"