Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
21294bd7
Commit
21294bd7
authored
May 12, 2004
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try root's private key in addtion to the newnode key, for Leigh's boot
CD, and for extra robstness.
parent
4ad7e6d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tbsetup/newnode_reboot.in
tbsetup/newnode_reboot.in
+7
-1
No files found.
tbsetup/newnode_reboot.in
View file @
21294bd7
...
@@ -37,6 +37,12 @@ $ENV{PATH} = "/bin";
...
@@ -37,6 +37,12 @@ $ENV{PATH} = "/bin";
#
#
my
$privkey
=
"
$TB
/etc/identity.newnode
";
my
$privkey
=
"
$TB
/etc/identity.newnode
";
#
# We also try root's own private key in case the node has somehow ended up in a
# state where it's booted from the special boot CD or a 'regular' image.
#
my
$rootkey
=
"
/root/.ssh/identity
";
if
(
!
TBAdmin
(
$UID
))
{
if
(
!
TBAdmin
(
$UID
))
{
die
"
Sorry, only admins can run this script
\n
";
die
"
Sorry, only admins can run this script
\n
";
}
}
...
@@ -65,7 +71,7 @@ if ($ARGV[0] !~ /^(\d+\.\d+\.\d+\.\d+)$/) {
...
@@ -65,7 +71,7 @@ if ($ARGV[0] !~ /^(\d+\.\d+\.\d+\.\d+)$/) {
$IP
=
$
1
;
$IP
=
$
1
;
}
}
my
$rv
=
system
("
$ssh
-l root -i
$privkey
$IP
/sbin/reboot
");
my
$rv
=
system
("
$ssh
-l root -i
$privkey
-i
$rootkey
$IP
/sbin/reboot
");
#
#
# XXX - We can't check the return value of ssh for failure, since reboot on
# XXX - We can't check the return value of ssh for failure, since reboot on
...
...
Write
Preview
Markdown
is supported
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