#!/bin/sh # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 . /etc/init.d/functions.sh . "${RC_LIBDIR}"/sh/rc-functions.sh killall5 -15 killall5 -9 # Support LiveCD foo ..... + local 'cmd=mount -n -o remount,ro' retval=0 retry= + local 'f_opts=-m -c' 'f_kill=-s ' mnt= + '[' Linux = Linux ']' + f_opts=-c + f_kill=- ++ mountinfo --skip-regex '^(/dev|/dev/pts|/dev/shm|/proc|/proc/.*|/sys)$' --reverse ++ sed -e 's/'\''/'\''\\'\'''\''/g' -e 's/^/'\''/g' -e 's/$/'\''/g' + local 'mnts='\''/'\''' + eval set -- ''\''/'\''' ++ set -- / + for mnt in '"$@"' + case "${cmd}" in + ebegin 'Remounting /' * Remounting / ... + retry=3 + mount -n -o remount,ro / ++ fuser -c / + local 'pids= 1 2 3 4 5 49 50 151 154 156 168 173 181 182 183 184 846 853 1899 2939 3388' + case " ${pids} " in + retry=0 + '[' 0 -le 0 ']' + local extra_opts=-f + case "${cmd}" in + '[' Linux = Linux ']' + extra_opts=-i + mount -n -o remount,ro -i / mount: / is busy + retry=-999 + break + '[' -999 -eq -999 ']' + eend 1 [ !! ] + retval=1 + return 1 1 ... ps aux > /home/axxo/aux.log ps aux mount echo "press key" read foo # Load the final script - not needed on BSD so they should not exist [ -e /etc/init.d/"$1".sh ] && . /etc/init.d/"$1".sh auxlog USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.5 0.0 1524 528 ? Ss 20:26 0:00 init [0] root 2 0.0 0.0 0 0 ? SN 20:26 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? S< 20:26 0:00 [events/0] root 4 0.0 0.0 0 0 ? S< 20:26 0:00 [khelper] root 5 0.0 0.0 0 0 ? S< 20:26 0:00 [kthread] root 49 0.0 0.0 0 0 ? S< 20:26 0:00 [kblockd/0] root 50 0.0 0.0 0 0 ? S< 20:26 0:00 [kacpid] root 151 0.0 0.0 0 0 ? S< 20:26 0:00 [ksuspend_usbd] root 154 0.0 0.0 0 0 ? S< 20:26 0:00 [khubd] root 156 0.0 0.0 0 0 ? S< 20:26 0:00 [kseriod] root 168 0.0 0.0 0 0 ? S< 20:26 0:00 [khpsbpkt] root 173 0.0 0.0 0 0 ? S< 20:26 0:00 [knodemgrd_0] root 181 0.0 0.0 0 0 ? S 20:26 0:00 [pdflush] root 182 0.0 0.0 0 0 ? S 20:26 0:00 [pdflush] root 183 0.0 0.0 0 0 ? S< 20:26 0:00 [kswapd0] root 184 0.0 0.0 0 0 ? S< 20:26 0:00 [aio/0] root 846 0.0 0.0 0 0 ? S< 20:26 0:00 [kpsmoused] root 853 0.0 0.0 0 0 ? S< 20:26 0:00 [reiserfs/0] root 1899 0.0 0.0 0 0 ? S< 20:26 0:00 [ipw2200/0] root 2939 0.0 0.1 2616 1340 ? Rs 20:27 0:00 /bin/sh /etc/init.d/halt.sh shutdown root 3394 0.0 0.0 2148 848 ? R 20:27 0:00 ps aux