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

17 lines
550 B
Bash
Executable file

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