Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions core-services/99-cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# vim: set ts=4 sw=4 et:

# runsvchdir chokes if the current and/or previous symlinks are broken
if [ -e /etc/runit/runsvdir/previous ]; then
rm /etc/runit/runsvdir/previous
fi
if [ -e /etc/runit/runsvdir/current ]; then
rm /etc/runit/runsvdir/current
fi
# Set the initial runlevel to 'default', even if a different one
# is being selected through the kernel command line (see /etc/runit/2)
ln -s default /etc/runit/runsvdir/current

if [ ! -e /var/log/wtmp ]; then
install -m0664 -o root -g utmp /dev/null /var/log/wtmp
fi
Expand Down