www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre17/bin/cinit-conf.svc.mtab-clean.linux
Nico Schottelius 759b58c293 released cinit-0.3pre17
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-10-05 19:14:52 +02:00

20 lines
594 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius
# cinit: install service: cleanup mtab
# Date: 2005-08-07
#
. "$(dirname $0)/cinit-conf.read-conf"
set -e
# - mount /proc
"$INSTALL_PROG" "$INSTALL_DIRECTORY" \
"${DESTDIR}/${CINIT_DIR}/local-tuning/cleanup-mtab"
echo '#!/bin/sh' > "${DESTDIR}/${CINIT_DIR}/local-tuning/cleanup-mtab/$C_ON"
echo 'rm -f /etc/mtab' >>"${DESTDIR}/${CINIT_DIR}/local-tuning/cleanup-mtab/$C_ON"
echo 'ln -s /proc/mounts /etc/mtab' \
>> "${DESTDIR}/${CINIT_DIR}/local-tuning/cleanup-mtab/$C_ON"
chmod 0700 "${DESTDIR}/${CINIT_DIR}/local-tuning/cleanup-mtab/$C_ON"
exit 0