#!/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) if [ ! -f /run/utmp ] then >/run/utmp fi if [ -L /var/run ] then /usr/bin/rm -f /var/run found_link=true fi if [ ! -d /var/run ] then /usr/bin/mkdir -p /var/run fi if [ -L /var/lock ] then /usr/bin/rm -f /var/lock found_link=true fi if [ ! -d /var/lock ] then /usr/bin/mkdir -p /var/lock fi if ${found_link:-false} || [ ! -x /usr/bin/systemctl ] then /usr/bin/mount -o bind /run /var/run /usr/bin/mount -o bind /run/lock /var/lock /usr/bin/chmod 1777 /run/lock fi ;; stop) : ;; esac