MAJOR=4
MINOR=53
DEVNAME=tty53
     ?ˆ¾�þB gÁ 7H ?ßƒh¹ÞÁÛ      ?MAJOR=4
MINOR=45
DEVNAME=tty45
     Aˆ×ÖÞ‚hAÕÁÛ ¥    A‹      µ“_OÛ0Åßùw~Ø¹°²—áxê’J«TÚªdBÓ´Çvc‹$Žì|z’¦�@Ó¤íÉÿ~>ÇçÚæïòUV|_Ïàkq±€õ·/‹yìñj’!æE>.œ%'§ˆ³%f‰ºOˆ»Ý.ÙM*,6h©©Ï0RpŠMš‰#>Ì‰#àÖHÝ·ÀÉQmÄ¼Õæø- ¿¡è´é•»›²vêqâ÷Â¼—M#5RÓ¡’Ê”1Š»àÕõÐ»�$'8�GõÞ†¼ôún8Çéóì¥÷Ád¹·ºAp²p+kWµ)#ß1Á]SA*eè”o#–µl¯“ÊmÈšRöcž­~ö’v.Á³MÙç,]ž¯Òœ‰¥lGù:sÑ3S&24^»­3úMør„/ÝýÛ‚ùÈä&ªà:r¾}B±�ø<ªòuìdŸõcŸÀ†çÔˆè?UCªÅXO7³e‘Ï7cIô ñtºxƒL¬e0-Aî‚QäÃÝ!åhù¾-cwþ8„C†à*KL Ã«äß”‡ãþ©r¿ÌH âÔ•    5   Cˆl–Ü4ý(TÐ;â�À·q ©‹Fÿ�þB7^YÆˆáD	#mùàƒq×\ßÂÜ x    C#!/usr/bin/perl
#
# dpkg-name
#
# Copyright Â© 1995,1996 Erick Branderhorst <branderh@debian.org>.
# Copyright Â© 2006-2010, 2012-2015 Guillem Jover <guillem@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

use warnings;
use strict;

use List::Util qw(none);
use File::Basename;
use File::Path qw(make_path);

use Dpkg ();
use Dpkg::Gettext;
use Dpkg::ErrorHandling;
use Dpkg::Version;
use Dpkg::Control;
use Dpkg::Arch qw(get_host_arch);

textdomain('dpkg-dev');

my %options = (
    subdir => 0,
    destdir => '',
    createdir => 0,
    overwrite => 0,
    symlink => 0,
    architecture => 1,
);

sub version()
{
    printf(g_("Debian %s version %s.\n"), $Dpkg::PROGNAME, $Dpkg::PROGVERSION);
}

sub usage()
{
    printf(g_("Usage: %s [<option>...] <file>...\n"), $Dpkg::PROGNAME);

    print(g_("
Options:
  -a, --no-architecture    no architecture part in filename.
  -o, --overwrite          overwrite if file exists.
  -k, --symlink            don't create a new file, but a symlink.
  -s, --subdir [dir]       move file into subdirectory (use with care).
  -c, --create-dir         create target directory if not there (use with care).
  -?, --help               show this help message.
  -v, --version            show the version.

file.deb changes to <package>_<version>_<architecture>.<package_type>
according to the 'underscores convention'.
"));
}

sub fileexists($)
{
    my $filename = shift;

    if (-f $filename) {
        return 1;
    } else {
        warning(g_("cannot find '%s'"), $filename);
        return 0;
    }
}

sub filesame($$)
{
    my ($a, $b) = @_;
    my @sta = stat($a);
    my @stb = stat($b);

    # Same device and inode numbers.
    return (@sta and @stb and $sta[0] == $stb[0] and $sta[1] == $stb[1]);
}

sub getfields($)
{
    my $filename = shift;

    # Read the fields
    open(my $cdata_fh, '-|', 'dpkg-deb', '-f', '--', $filename)
        or syserr(g_('cannot open %s'), $filename);
    my $fields = Dpkg::Control->new(type => CTRL_PKG_DEB);
    $fields->parse($cdata_fh, sprintf(g_('binary control file %s'), $filename));
    close($cdata_fh);

    return $fields;
}

sub getarch($$)
{
    my ($filename, $fields) = @_;

    my $arch = $fields->{Architecture};
    if (not $fields->{Architecture} and $options{architecture}) {
        $arch = get_host_arch();
        warning(g_("assuming architecture '%s' for '%s'"), $arch, $filename);
    }

    return $arch;
}

sub getname($$$)
{
    my ($filename, $fields, $arch) = @_;

    my $pkg = $fields->{Package};
    my $v = Dpkg::Version->new($fields->{Version});
    my $version = $v->as_string(omit_epoch => 1);
    my $type = $fields->{'Package-Type'} || 'deb';

    my $tname;
    if ($options{architecture}) {
        $tname = "$pkg\_$version\_$arch.$type";
    } else {
        $tname = "$pkg\_$version.$type";
    }
    (my $name = $tname) =~ s/ //g;
    i