Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
4a938b01
Commit
4a938b01
authored
Feb 18, 2005
by
Russ Fish
Browse files
Windows tweaks.
parent
a43141a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
tmcd/cygwinxp/liblocsetup.pm
View file @
4a938b01
...
...
@@ -479,7 +479,8 @@ sub os_routing_enable_forward()
{
my
$cmd
;
$cmd
=
"
sysctl -w net.ipv4.conf.all.forwarding=1
";
###$cmd = "sysctl -w net.ipv4.conf.all.forwarding=1";
$cmd
=
"";
return
$cmd
;
}
...
...
tmcd/cygwinxp/rc.cygwinxp
View file @
4a938b01
...
...
@@ -39,35 +39,41 @@ else
# Does WSName return to the shell? Log it and give it a minute to take effect.
datehost
=
"
`
date
`
: Host name '
$hostname
'"
newhost
=
`
/bin/hostname
`
msg
=
"
$datehost
WSName returned to
t
he
shell after changing to '
$newhost
'."
msg
=
"
$datehost
WSName returned to
s
he
ll as '
$newhost
' after WSName '
$nodeid
'."
echo
"
$msg
"
>>
$logfile
echo
"
$msg
"
sleep
60
# Should never get here! Try /sbin/reboot.
datehost
=
"
`
date
`
: Host name '
$hostname
'"
newhost
=
`
/bin/hostname
`
msg
=
"
$datehost
didn't reboot changing to '
$newhost
'! Trying reboot."
msg
=
"
$datehost
didn't reboot changing to '
$nodeid
'! Trying reboot."
echo
"
$msg
"
>>
$logfile
echo
"
$msg
"
/sbin/reboot
# Reboot returns to the shell. Give it a
minute
to take effect.
sleep
6
0
# Reboot returns to the shell. Give it a
few seconds
to take effect.
sleep
1
0
# Should never get here either!!
!
Try /bin/shutdown.
# Should never get here either!! Try /bin/shutdown.
datehost
=
"
`
date
`
: Host name '
$hostname
'"
newhost
=
`
/bin/hostname
`
msg
=
"
$datehost
didn't /sbin/reboot changing to '
$newhost
'! Trying shutdown."
msg
=
"
$datehost
didn't /sbin/reboot changing to '
$nodeid
'! Trying shutdown."
echo
"
$msg
"
>>
$logfile
echo
"
$msg
"
/bin/shutdown
-r
-f
now
# Shutdown returns to the shell. Give it a minute to take effect.
sleep
60
# Shutdown returns to the shell. Give it a few seconds to take effect.
sleep
10
# Last resort!!! tsshutdn
datehost
=
"
`
date
`
: Host name '
$hostname
'"
msg
=
"
$datehost
didn't /bin/shutdown changing to '
$nodeid
'! Trying tsshutdn."
echo
"
$msg
"
>>
$logfile
echo
"
$msg
"
tsshutdn 1 /REBOOT /DELAY:1
# Shutdown shouldn't return to the shell. Give it a few seconds to take effect.
sleep
10
# Give up, log it, and go on.
datehost
=
"
`
date
`
: Host name '
$hostname
'"
newhost
=
`
/bin/hostname
`
msg
=
"
$datehost
failed to reboot changing to '
$newhost
'."
msg
=
"
$datehost
failed to reboot changing to '
$nodeid
'."
echo
"
$msg
"
>>
$logfile
echo
"
$msg
"
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment