#!/bin/sh #---------------------------------------------------------------------------- # /etc/init.d/boot.cleanup - cleanup system files # # Creation : 2004-08-17 fm # Last Update: $Id$ # # Copyright (c) 2001-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # 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. #---------------------------------------------------------------------------- case "$1" in start) /usr/bin/rm -f /run/*.pid 2>/dev/null /usr/bin/rm -f /run/*/*.pid 2>/dev/null >/run/utmp if ! /usr/bin/readlink /var/run | /usr/bin/grep -qw '\.\./run' then call_dir=$(pwd) cd /var if [ -d run ] then /usr/bin/rm -rf run else /usr/bin/rm -f run fi /usr/bin/ln -s ../run run cd ${call_dir} fi ;; stop) ;; esac