168 | | drbl-srv:~# cat << EOF > mount_boot |
169 | | > #! /bin/sh |
170 | | > set -e |
171 | | > |
172 | | > # /etc/init.d/mount_boot: mount /boot for DRBL Client which is Xen enabled. |
173 | | > |
174 | | > export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" |
175 | | > |
176 | | > case "$1" in |
177 | | > start) |
178 | | *) |
179 | | echo "Usage: /etc/init.d/ssh {start|stop}" |
180 | | exit 1 |
181 | | esac |
182 | | |
183 | | exit 0 |
184 | | > mkdir -p /tmp/boot |
185 | | > echo -n "mounting /boot:" |
186 | | > mount /boot |
187 | | > echo "[OK]" |
188 | | > ;; |
189 | | > stop) |
190 | | > echo -n "unmounting /boot:" |
191 | | > umount /boot |
192 | | > echo "[OK]" |
193 | | > ;; |
194 | | > |
195 | | > *) |
196 | | > echo "Usage: /etc/init.d/ssh {start|stop}" |
197 | | > exit 1 |
198 | | > esac |
199 | | > |
200 | | > exit 0 |
201 | | > EOF |
202 | | }}} |
203 | | * (following is for copy and paste) |
| 168 | drbl-srv:~# vi mount_boot |
| 169 | drbl-srv:~# /opt/drbl/sbin/drbl-cp-host mount_boot /etc/init.d/ |
| 170 | drbl-srv:~# /opt/drbl/sbin/drbl-client-service mount_boot on |
| 171 | }}} |
| 172 | * Here is mount_boot |