Darryl L. Pierce
2009-Mar-03 15:25 UTC
[Ovirt-devel] [PATCH node-image] An attempt to overcome the lack of job control WRT pinging.
Adds an alias for ping that includes an explicit limit to 3 ping attempts. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- common-post.ks | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/common-post.ks b/common-post.ks index fc7bbac..8ec0295 100644 --- a/common-post.ks +++ b/common-post.ks @@ -102,3 +102,8 @@ chmod 700 /root/.ssh # fix iSCSI/LVM startup issue sed -i 's/node\.session\.initial_login_retry_max.*/node.session.initial_login_retry_max = 60/' /etc/iscsi/iscsid.conf +# root's bash profile +cat >> /root/.bashrc <<EOF +# aliases used for the temporary +alias ping='ping -c 3' +EOF -- 1.6.0.6
Alan Pevec
2009-Mar-03 16:45 UTC
[Ovirt-devel] [PATCH node-image] An attempt to overcome the lack of job control WRT pinging.
On Tue, Mar 3, 2009 at 4:25 PM, Darryl L. Pierce <dpierce at redhat.com> wrote:> +# root's bash profile > +cat >> /root/.bashrc <<EOFNeeds to be /.bashrc - this workaround is needed only for emergency shell (Shell option in firstboot menu). When started from init, homedir is not set, so /root/.bashrc is not sourced.