Changeset 450 in ProjectBuilder for devel/pb/bin
- Timestamp:
- May 27, 2008, 12:09:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r448 r450 1503 1503 # Keep the VM in text mode 1504 1504 $file="/etc/inittab"; 1505 open(PBFILE,$file) || die "Unable to open $file"; 1506 open(PBOUT,"> $file.new") || die "Unable to open $file.new"; 1507 while (<PBFILE>) { 1508 s/^(..):5:initdefault:$/$1:3:initdefault:/; 1509 print PBOUT $_; 1510 } 1511 close(PBFILE); 1512 close(PBOUT); 1513 rename("$file.new",$file); 1514 chmod 0640,$file; 1505 if (-f $file) { 1506 open(PBFILE,$file) || die "Unable to open $file"; 1507 open(PBOUT,"> $file.new") || die "Unable to open $file.new"; 1508 while (<PBFILE>) { 1509 s/^(..):5:initdefault:$/$1:3:initdefault:/; 1510 print PBOUT $_; 1511 } 1512 close(PBFILE); 1513 close(PBOUT); 1514 rename("$file.new",$file); 1515 chmod 0640,$file; 1516 } 1515 1517 1516 1518 # pb has to be added to portage group on gentoo
Note:
See TracChangeset
for help on using the changeset viewer.