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
bbd7665c
Commit
bbd7665c
authored
Feb 18, 2005
by
Russ Fish
Browse files
Make things consistent. If Daikon is happy, so are we.
parent
9c254ace
Changes
2
Hide whitespace changes
Inline
Side-by-side
tmcd/cygwinxp/liblocsetup.pm
View file @
bbd7665c
...
...
@@ -12,8 +12,8 @@ package liblocsetup;
use
Exporter
;
@ISA
=
"
Exporter
";
@EXPORT
=
qw (
$CP
$LN
$RM
$CHOWN
$
CHMOD
$TOUCH
$MOUNT
$UMOUNT
$EGREP
$NTS
$NET
$HOSTSFILE
qw (
$RM
$CHOWN
$
MOUNT
$UMOUNT
## $CP $LN $CHMOD $TOUCH
$EGREP
$NTS
$NET
##
$HOSTSFILE
$TMPASSWD
$SFSSD
$SFSCD
$RPMCMD
os_account_cleanup
os_accounts_start
os_accounts_end
os_accounts_sync
os_ifconfig_line
os_etchosts_line
...
...
@@ -50,15 +50,15 @@ use librc;
#
# Various programs and things specific to CygWin on XP and that we want to export.
#
$CP
=
"
/bin/cp
";
$LN
=
"
/bin/ln
";
##
$CP = "/bin/cp";
##
$LN = "/bin/ln";
$RM
=
"
/bin/rm
";
$CHOWN
=
"
/bin/chown
";
$CHMOD
=
"
/bin/chmod
";
$TOUCH
=
"
/bin/touch
";
##
$CHMOD = "/bin/chmod";
##
$TOUCH = "/bin/touch";
$MOUNT
=
"
/bin/mount
";
$UMOUNT
=
"
/bin/umount
";
$EGREP
=
"
/bin/egrep -q
";
##
$EGREP = "/bin/egrep -q";
# Cygwin.
$MKPASSWD
=
"
/bin/mkpasswd
";
...
...
@@ -71,7 +71,7 @@ $NTS = "/cygdrive/c/WINDOWS/system32";
$NET
=
"
$NTS
/net
";
$NETSH
=
"
$NTS
/netsh
";
$NTE
=
"
$NTS
/drivers/etc
";
$HOSTSFILE
=
"
$NTE
/hosts
";
##
$HOSTSFILE = "$NTE/hosts";
#
# These are not exported
...
...
@@ -347,16 +347,16 @@ sub os_usermod($$$$$$)
# Unimplemented.
return
-
1
;
if
(
$root
)
{
$glist
=
join
('
,
',
split
(
/,/
,
$glist
),
"
root
");
}
if
(
$glist
ne
"")
{
$glist
=
"
-G
$glist
";
}
# Map the shell into a full path.
$shell
=
MapShell
(
$shell
);
return
system
("
$USERMOD
-s
$shell
-g
$gid
$glist
-p '
$pswd
'
$login
");
##
if ($root) {
##
$glist = join(',', split(/,/, $glist), "root");
##
}
##
if ($glist ne "") {
##
$glist = "-G $glist";
##
}
#
##
Map the shell into a full path.
##
$shell = MapShell($shell);
##
##
return system("$USERMOD -s $shell -g $gid $glist -p '$pswd' $login");
}
#
...
...
tmcd/win32/liblocsetup.pm
View file @
bbd7665c
...
...
@@ -43,8 +43,8 @@ BEGIN
#
# Various programs and things specific to win32/cygwin and that we want to export.
#
$CP
=
"
/bin/cp
";
$EGREP
=
"
/bin/egrep -q
";
##
$CP = "/bin/cp";
##
$EGREP = "/bin/egrep -q";
#$MOUNT = "/bin/mount";
#$UMOUNT = "/bin/umount";
#$TMPASSWD = "$ETCDIR/passwd";
...
...
@@ -67,12 +67,12 @@ $EGREP = "/bin/egrep -q";
#my $IFC_10MBS = "10baseT";
#my $IFC_FDUPLEX = "FD";
#my $IFC_HDUPLEX = "HD";
#
my $RPMINSTALL = "/bin/rpm -i %s";
my
$RPMINSTALL
=
"
/bin/rpm -i %s
";
#my @LOCKFILES = ("/etc/group.lock", "/etc/gshadow.lock");
my
$MKDIR
=
"
/bin/mkdir
";
#
my $GATED = "/usr/sbin/gated";
my
$GATED
=
"
/usr/sbin/gated
";
#my $ROUTE = "/sbin/route";
#
my $SHELLS = "/etc/shells";
my
$SHELLS
=
"
/etc/shells
";
#my $DEFSHELL = "/bin/tcsh";
#
...
...
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