www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre1/bin/cinit.install.service.mount-root
Nico Schottelius 423ba10303 import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-09-16 12:53:45 +02:00

19 lines
617 B
Bash

#!/bin/sh
# Nico Schottelius
# cinit: install service: mount root r/w
# Date: 2005-08-07
#
. $(dirname $0)/cinit.read-conf
set -e
# mount root read/write
"$INSTALL_PROG" "$INSTALL_DIRECTORY" "${DESTDIR}/${CINIT_DIR}/mount/root"
ln -sf /bin/mount "${DESTDIR}/${CINIT_DIR}/mount/root/$C_ON"
echo -n > "${DESTDIR}/${CINIT_DIR}/mount/root/${C_ON}${C_PARAMS}"
echo -o >> "${DESTDIR}/${CINIT_DIR}/mount/root/${C_ON}${C_PARAMS}"
echo remount,rw >> "${DESTDIR}/${CINIT_DIR}/mount/root/${C_ON}${C_PARAMS}"
echo / >> "${DESTDIR}/${CINIT_DIR}/mount/root/${C_ON}${C_PARAMS}"
exit 0