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
f26c11e3
Commit
f26c11e3
authored
Jan 04, 2001
by
Mac Newbold
Browse files
Fixed makefile to leave dirs group write, and fixed power to deal with it.
parent
c2b37366
Changes
2
Hide whitespace changes
Inline
Side-by-side
tbsetup/GNUmakefile.in
View file @
f26c11e3
...
...
@@ -53,10 +53,10 @@ script-install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_STUFF)) \
$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_STUFF))
post-install:
chmod
go-w
$(INSTALL_BINDIR)
chmod
go-w
$(INSTALL_SBINDIR)
chmod
go-w
$(INSTALL_LIBDIR)
chmod
go-w
$(INSTALL_LIBEXECDIR)
chmod
775
$(INSTALL_BINDIR)
chmod
775
$(INSTALL_SBINDIR)
chmod
775
$(INSTALL_LIBDIR)
chmod
775
$(INSTALL_LIBEXECDIR)
chown root $(INSTALL_LIBEXECDIR)/mkprojdir
chmod u+s $(INSTALL_LIBEXECDIR)/mkprojdir
chown root $(INSTALL_LIBEXECDIR)/rmprojdir
...
...
tbsetup/power.in
View file @
f26c11e3
...
...
@@ -21,7 +21,7 @@ my $TB = "@prefix@";
my
$DBNAME
=
"
@TBDBNAME
@
";
# un-taint path since this gets called from setuid scripts.
$ENV
{'
PATH
'}
=
'
/bin:/usr/bin:/usr/local/bin:
$TB
/bin
';
$ENV
{'
PATH
'}
=
'
/bin:/usr/bin:/usr/local/bin:
@prefix@
/bin
';
delete
@ENV
{'
IFS
',
'
CDPATH
',
'
ENV
',
'
BASH_ENV
'};
my
$user
=
(
getpwuid
(
$<
))[
0
]
...
...
@@ -124,10 +124,10 @@ foreach $node ( sort @machines) {
(
$snmpit
,'
-v
','
-i
',
$IPList
{
$node
},
$op
,
$OutletList
{
$node
}));
open
(
OUT
,
$cmd
.
"
|
");
while
(
<
OUT
>
)
{
if
(
/was outlet([Onf
Cycle]*
)/
)
{
if
(
/was outlet([Onf
Rebot]+
)/
)
{
print
"
$node
was $1
";
}
if
(
/to outlet([Onf
Cycle]*
)/
)
{
if
(
/to outlet([Onf
Rebot]+
)/
)
{
print
"
...
$node
now $1
";
}
}
...
...
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