Ignore:
Timestamp:
Oct 13, 2009, 1:11:51 AM (13 years ago)
Author:
geofft
Message:
execsys: Stop automatically generating the binfmt_misc configuration.

While we're there, kill an autoconf macro that was never used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/execsys/upd-execsys

    r944 r1337  
    8585my $regexp = '(.*[\/\#]+\sSTART-AUTOGENERATED:[^!]*!).*\s([\/\#]+\sEND-AUTOGENERATED.*)';
    8686
    87 # Read existing binfmt file
    88 
    89 open(BINFMT, "./execsys-binfmt.pre");
    90 my $file = <BINFMT>;
    91 my ($fstart, $fend) = ($file =~ /$regexp/s);
    92 close(BINFMT);
    93 
    94 # Write new binfmt file
    95 
    96 open(BINFMT, ">./execsys-binfmt");
    97 print BINFMT $fstart, "\n";
    98 
    99 foreach my $ext (@dynamic) {
    100   my $path = $ENV{"${ext}_path"};
    101   print BINFMT "echo \":${ext}:E::${ext}::${path}:\" > /proc/sys/fs/binfmt_misc/register\n" if($path);
    102 }
    103 
    104 #foreach my $ext (@static) {
    105 #       print BINFMT "echo \":${ext}:E::${ext}::$ENV{syscat_path}:\" > /proc/sys/fs/binfmt_misc/register\n";
    106 #}
    107 print BINFMT $fend;
    108 close(BINFMT);
    109 
    11087open(CONF, ">./execsys.conf");
    11188
Note: See TracChangeset for help on using the changeset viewer.