⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 postinst

📁 君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图片解码,浏览,电子书,录音,想学ucos,识货的人就下吧 russblock fmradio explore set
💻
字号:
#!/usr/bin/perl -w# mplayer postinstrequire ConfHelper;use Debconf::Client::ConfModule qw(:all);use IO::Handle;use Fcntl;my $version = version(2.0);my $didupgrade = 0;dealwithupgrades();my $mcfg = new ConfHelper('mplayer', "/etc/mplayer/mplayer.conf");my $dcarea = "" ;my $font =  scalar(get("mplayer/ttfont"))  ;  $dcarea .= "#truetype font\nfont=" . $font . "\n"   if $font;$mcfg->setconfarea($dcarea);sub dealwithupgrades {  open(OLDCONF, "</etc/mplayer/mplayer.conf") || return 1;  close OLDCONF;  my $mconf = new ConfHelper("mplayer", "/etc/mplayer/mplayer.conf");  return 1 if ($mconf->hasconfarea());  undef $mconf;  if ((get('mplayer/replace-existing-files') eq 'true') &&      (fget('mplayer/replace-existing-files', 'isdefault') eq 'false')) {    $didupgrade = 1;    for my $file ("/etc/mplayer/mplayer.conf"    ) {      debug("Moving away $file");      rename($file,$file . ".old");    }  } else {    debug("Upgrade refused, exiting");    exit 0;  }}sub debug {  print STDERR @_, "\n";}# pass control to debhelper scripts..#my $temp="set -e\nset -- @ARGV\n" . << 'DEBHELPER_EOF_';#DEBHELPER#DEBHELPER_EOF_system ($temp) / 256 == 0   or die "Problem with debhelper scripts: $!";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -