#! /bin/sh
#----------------------------------------------------------------------------
# /tmp/install.sh - sysvinit installation
#
# Creation   :  2013-03-03 holbru
# Last update:  $Id: postinstall-sysvinit.sh 33172 2013-03-03 09:09:13Z hbfl $
#
# Copyright (c) 2013-2013 Holger Bruenjes, holgerbruenjes(at)gmx(dot)net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#----------------------------------------------------------------------------

# set package name
package_name=sysvinit

# ---------------------------------------------------------------------------
# generate symlinks
# ---------------------------------------------------------------------------

cd /bin
rm -f pidof
ln -sf ../sbin/killall5 pidof


cd /sbin
rm -f poweroff
ln -sf halt poweroff
rm -f reboot
ln -sf halt reboot
rm -f telinit
ln -sf init telinit
rm -f pidof
ln -sf killall5 pidof
rm -f setconsole
ln -sf showconsole setconsole

rm -f bootlogd

cd /usr/bin
rm -f lastb
ln -sf last lastb

exit 0
# ---------------------------------------------------------------------------
# end
# ---------------------------------------------------------------------------
