diff options
Diffstat (limited to 'beagle/debian-rfs/usr/bin')
188 files changed, 3664 insertions, 0 deletions
diff --git a/beagle/debian-rfs/usr/bin/[ b/beagle/debian-rfs/usr/bin/[ Binary files differnew file mode 100755 index 0000000..d5b9727 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/[ diff --git a/beagle/debian-rfs/usr/bin/addpart b/beagle/debian-rfs/usr/bin/addpart Binary files differnew file mode 100755 index 0000000..64527e5 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/addpart diff --git a/beagle/debian-rfs/usr/bin/arch b/beagle/debian-rfs/usr/bin/arch Binary files differnew file mode 100755 index 0000000..c957500 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/arch diff --git a/beagle/debian-rfs/usr/bin/base64 b/beagle/debian-rfs/usr/bin/base64 Binary files differnew file mode 100755 index 0000000..9d77ccc --- /dev/null +++ b/beagle/debian-rfs/usr/bin/base64 diff --git a/beagle/debian-rfs/usr/bin/basename b/beagle/debian-rfs/usr/bin/basename Binary files differnew file mode 100755 index 0000000..3506974 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/basename diff --git a/beagle/debian-rfs/usr/bin/bashbug b/beagle/debian-rfs/usr/bin/bashbug new file mode 100755 index 0000000..d7f4099 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/bashbug @@ -0,0 +1,272 @@ +#!/bin/sh - +# +# bashbug - create a bug report and mail it to the bug address +# +# The bug address depends on the release status of the shell. Versions +# with status `devel', `alpha', `beta', or `rc' mail bug reports to +# chet@cwru.edu and, optionally, to bash-testers@cwru.edu. +# Other versions send mail to bug-bash@gnu.org. +# +# Copyright (C) 1996-2004 Free Software Foundation, Inc. +# +# 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 3 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 <http://www.gnu.org/licenses/>. + +# +# configuration section: +# these variables are filled in by the make target in Makefile +# +MACHINE="arm" +OS="linux-gnueabi" +CC="gcc" +CFLAGS=" -DPROGRAM='bash' -DCONF_HOSTTYPE='arm' -DCONF_OSTYPE='linux-gnueabi' -DCONF_MACHTYPE='arm-unknown-linux-gnueabi' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 -Wall" +RELEASE="4.1" +PATCHLEVEL="5" +RELSTATUS="release" +MACHTYPE="arm-unknown-linux-gnueabi" + +PATH=/bin:/usr/bin:/usr/local/bin:$PATH +export PATH + +# Check if TMPDIR is set, default to /tmp +: ${TMPDIR:=/tmp} + +#Securely create a temporary directory for the temporary files +TEMPDIR=$TMPDIR/bbug.$$ +(umask 077 && mkdir $TEMPDIR) || { + echo "$0: could not create temporary directory" >&2 + exit 1 +} + +TEMPFILE1=$TEMPDIR/bbug1 +TEMPFILE2=$TEMPDIR/bbug2 + +USAGE="Usage: $0 [--help] [--version] [bug-report-email-address]" +VERSTR="GNU bashbug, version ${RELEASE}.${PATCHLEVEL}-${RELSTATUS}" + +do_help= do_version= + +while [ $# -gt 0 ]; do + case "$1" in + --help) shift ; do_help=y ;; + --version) shift ; do_version=y ;; + --) shift ; break ;; + -*) echo "bashbug: ${1}: invalid option" >&2 + echo "$USAGE" >& 2 + exit 2 ;; + *) break ;; + esac +done + +if [ -n "$do_version" ]; then + echo "${VERSTR}" + exit 0 +fi + +if [ -n "$do_help" ]; then + echo "${VERSTR}" + echo "${USAGE}" + echo + cat << HERE_EOF +Bashbug is used to send mail to the Bash maintainers +for when Bash doesn't behave like you'd like, or expect. + +Bashbug will start up your editor (as defined by the shell's +EDITOR environment variable) with a preformatted bug report +template for you to fill in. The report will be mailed to the +bug-bash mailing list by default. See the manual for details. + +If you invoke bashbug by accident, just quit your editor without +saving any changes to the template, and no bug report will be sent. +HERE_EOF + exit 0 +fi + +# Figure out how to echo a string without a trailing newline +N=`echo 'hi there\c'` +case "$N" in +*c) n=-n c= ;; +*) n= c='\c' ;; +esac + +BASHTESTERS="bash-testers@cwru.edu" + +case "$RELSTATUS" in +alpha*|beta*|devel*|rc*) BUGBASH=chet@cwru.edu ;; +*) BUGBASH=bug-bash@gnu.org ;; +esac + +case "$RELSTATUS" in +alpha*|beta*|devel*|rc*) + echo "$0: This is a testing release. Would you like your bug report" + echo "$0: to be sent to the bash-testers mailing list?" + echo $n "$0: Send to bash-testers? $c" + read ans + case "$ans" in + y*|Y*) BUGBASH="${BUGBASH},${BASHTESTERS}" ;; + esac ;; +esac + +BUGBASH="${BUGBASH},bash@packages.debian.org" +BUGADDR="${1-$BUGBASH}" + +if [ -z "$DEFEDITOR" ] && [ -z "$EDITOR" ]; then + if [ -x /usr/bin/editor ]; then + DEFEDITOR=editor + elif [ -x /usr/local/bin/ce ]; then + DEFEDITOR=ce + elif [ -x /usr/local/bin/emacs ]; then + DEFEDITOR=emacs + elif [ -x /usr/contrib/bin/emacs ]; then + DEFEDITOR=emacs + elif [ -x /usr/bin/emacs ]; then + DEFEDITOR=emacs + elif [ -x /usr/bin/xemacs ]; then + DEFEDITOR=xemacs + elif [ -x /usr/contrib/bin/jove ]; then + DEFEDITOR=jove + elif [ -x /usr/local/bin/jove ]; then + DEFEDITOR=jove + elif [ -x /usr/bin/vi ]; then + DEFEDITOR=vi + else + echo "$0: No default editor found: attempting to use vi" >&2 + DEFEDITOR=vi + fi +fi + + +: ${EDITOR=$DEFEDITOR} + +: ${USER=${LOGNAME-`whoami`}} + +trap 'rm -rf "$TEMPDIR"; exit 1' 1 2 3 13 15 +trap 'rm -rf "$TEMPDIR"' 0 + +UN= +if (uname) >/dev/null 2>&1; then + UN=`uname -a` +fi + +if [ -f /usr/lib/sendmail ] ; then + RMAIL="/usr/lib/sendmail" + SMARGS="-i -t" +elif [ -f /usr/sbin/sendmail ] ; then + RMAIL="/usr/sbin/sendmail" + SMARGS="-i -t" +else + RMAIL=rmail + SMARGS="$BUGADDR" +fi + +INITIAL_SUBJECT='[50 character or so descriptive subject here (for reference)]' + +cat > "$TEMPFILE1" <<EOF +From: ${USER} +To: ${BUGADDR} +Subject: ${INITIAL_SUBJECT} + +Configuration Information [Automatically generated, do not change]: +Machine: $MACHINE +OS: $OS +Compiler: $CC +Compilation CFLAGS: $CFLAGS +uname output: $UN +Machine Type: $MACHTYPE + +Bash Version: $RELEASE +Patch Level: $PATCHLEVEL +Release Status: $RELSTATUS + +Description: + [Detailed description of the problem, suggestion, or complaint.] + +Repeat-By: + [Describe the sequence of events that causes the problem + to occur.] + +Fix: + [Description of how to fix the problem. If you don't know a + fix for the problem, don't include this section.] +EOF + +cp "$TEMPFILE1" "$TEMPFILE2" +chmod u+w "$TEMPFILE1" + +trap '' 2 # ignore interrupts while in editor + +edstat=1 +while [ $edstat -ne 0 ]; do + $EDITOR "$TEMPFILE1" + edstat=$? + + if [ $edstat -ne 0 ]; then + echo "$0: editor \`$EDITOR' exited with nonzero status." + echo "$0: Perhaps it was interrupted." + echo "$0: Type \`y' to give up, and lose your bug report;" + echo "$0: type \`n' to re-enter the editor." + echo $n "$0: Do you want to give up? $c" + + read ans + case "$ans" in + [Yy]*) exit 1 ;; + esac + + continue + fi + + # find the subject from the temp file and see if it's been changed + CURR_SUB=`grep '^Subject: ' "$TEMPFILE1" | sed 's|^Subject:[ ]*||' | sed 1q` + + case "$CURR_SUB" in + "${INITIAL_SUBJECT}") + echo + echo "$0: You have not changed the subject from the default." + echo "$0: Please use a more descriptive subject header." + echo "$0: Type \`y' to give up, and lose your bug report;" + echo "$0: type \`n' to re-enter the editor." + echo $n "$0: Do you want to give up? $c" + + read ans + case "$ans" in + [Yy]*) exit 1 ;; + esac + + echo "$0: The editor will be restarted in five seconds." + sleep 5 + edstat=1 + ;; + esac + +done + +trap 'rm -rf "$TEMPDIR"; exit 1' 2 # restore trap on SIGINT + +if cmp -s "$TEMPFILE1" "$TEMPFILE2" +then + echo "File not changed, no bug report submitted." + exit +fi + +echo $n "Send bug report to ${BUGADDR}? [y/n] $c" +read ans +case "$ans" in +[Nn]*) exit 0 ;; +esac + +${RMAIL} $SMARGS < "$TEMPFILE1" || { + cat "$TEMPFILE1" >> $HOME/dead.bashbug + echo "$0: mail failed: report saved in $HOME/dead.bashbug" >&2 +} + +exit 0 diff --git a/beagle/debian-rfs/usr/bin/captoinfo b/beagle/debian-rfs/usr/bin/captoinfo new file mode 120000 index 0000000..4c747a3 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/captoinfo @@ -0,0 +1 @@ +tic
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/catchsegv b/beagle/debian-rfs/usr/bin/catchsegv new file mode 100755 index 0000000..7755700 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/catchsegv @@ -0,0 +1,107 @@ +#! /bin/sh +# Copyright (C) 1998,1999,2001,2003,2004,2006,2007,2008,2009 +# Free Software Foundation, Inc. +# This file is part of the GNU C Library. +# Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. + +# The GNU C Library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. + +# The GNU C Library 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 +# Lesser General Public License for more details. + +# You should have received a copy of the GNU Lesser General Public +# License along with the GNU C Library; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +if test $# -eq 0; then + echo "$0: missing program name" >&2 + echo "Try \`$0 --help' for more information." >&2 + exit 1 +fi + +prog="$1" +shift + +if test $# -eq 0; then + case "$prog" in + --h | --he | --hel | --help) + echo 'Usage: catchsegv PROGRAM ARGS...' + echo ' --help print this help, then exit' + echo ' --version print version number, then exit' + echo "For bug reporting instructions, please see:" + echo "<http://www.debian.org/Bugs/>." + exit 0 + ;; + --v | --ve | --ver | --vers | --versi | --versio | --version) + echo 'catchsegv (Debian EGLIBC 2.11.2-10) 2.11.2' + echo 'Copyright (C) 2009 Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +Written by Ulrich Drepper.' + exit 0 + ;; + *) + ;; + esac +fi + +segv_output=`mktemp ${TMPDIR:-/tmp}/segv_output.XXXXXX` || exit + +# Redirect stderr to avoid termination message from shell. +(exec 3>&2 2>/dev/null +LD_PRELOAD=${LD_PRELOAD:+${LD_PRELOAD}:}/\$LIB/libSegFault.so \ +SEGFAULT_USE_ALTSTACK=1 \ +SEGFAULT_OUTPUT_NAME=$segv_output \ +"$prog" ${1+"$@"} 2>&3 3>&-) +exval=$? + +# Check for output. Even if the program terminated correctly it might +# be that a minor process (clone) failed. Therefore we do not check the +# exit code. +if test -s "$segv_output"; then + # The program caught a signal. The output is in the file with the + # name we have in SEGFAULT_OUTPUT_NAME. In the output the names of + # functions in shared objects are available, but names in the static + # part of the program are not. We use addr2line to get this information. + case $prog in + */*) ;; + *) + old_IFS=$IFS + IFS=: + for p in $PATH; do + test -n "$p" || p=. + if test -f "$p/$prog"; then + prog=$p/$prog + break + fi + done + IFS=$old_IFS + ;; + esac + sed '/Backtrace/q' "$segv_output" + sed '1,/Backtrace/d' "$segv_output" | + (while read line; do + line=`echo $line | sed "s@^$prog\\(\\[.*\\)@\1@"` + case "$line" in + \[*) addr=`echo "$line" | sed 's/^\[\(.*\)\]$/\1/'` + complete=`addr2line -f -e "$prog" $addr 2>/dev/null` + if test $? -eq 0; then + echo "`echo "$complete"|sed 'N;s/\(.*\)\n\(.*\)/\2(\1)/;'`$line" + else + echo "$line" + fi + ;; + *) echo "$line" + ;; + esac + done) +fi +rm -f "$segv_output" + +exit $exval diff --git a/beagle/debian-rfs/usr/bin/chage b/beagle/debian-rfs/usr/bin/chage Binary files differnew file mode 100755 index 0000000..3a58ac1 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/chage diff --git a/beagle/debian-rfs/usr/bin/chattr b/beagle/debian-rfs/usr/bin/chattr Binary files differnew file mode 100755 index 0000000..60b676e --- /dev/null +++ b/beagle/debian-rfs/usr/bin/chattr diff --git a/beagle/debian-rfs/usr/bin/chcon b/beagle/debian-rfs/usr/bin/chcon Binary files differnew file mode 100755 index 0000000..054b771 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/chcon diff --git a/beagle/debian-rfs/usr/bin/chfn b/beagle/debian-rfs/usr/bin/chfn Binary files differnew file mode 100755 index 0000000..718eb8c --- /dev/null +++ b/beagle/debian-rfs/usr/bin/chfn diff --git a/beagle/debian-rfs/usr/bin/chkdupexe b/beagle/debian-rfs/usr/bin/chkdupexe new file mode 100755 index 0000000..e5fae68 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/chkdupexe @@ -0,0 +1,120 @@ +#!/usr/bin/perl -w +# +# chkdupexe version 2.1.1 +# +# Simple script to look for and list duplicate executables and dangling +# symlinks in the system executable directories. +# +# Copyright 1993 Nicolai Langfeldt. janl@math.uio.no +# Distribute under gnu copyleft (included in perl package) +# +# Modified 1995-07-04 Michael Shields <shields@tembel.org> +# Don't depend on GNU ls. +# Cleanups. +# Merge together $ENV{'PATH'} and $execdirs. +# Don't break if there are duplicates in $PATH. +# +# Modified 1996-02-16 Nicolai Langfeldt (janl@math.uio.no). +# I was thinking admins would edit the $execdirs list to suit their +# machine(s) when I wrote this. This is ofcourse not the case, thus +# Michaels fixes. And my fixes to his :-) +# - Working duplicate dirs detection. +# - Added more checks +# - Took out $PATH from the list of checked directories and added a +# check for $execdirs and $PATH consistency instead +# - Made it possible to run with perl -w + +$execdirs='/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin '. + '/usr/X11/bin /usr/bin/X11 /usr/local/X11/bin '. + '/usr/TeX/bin /usr/tex/bin /usr/games '. + '/usr/local/games'; + +# Turn off buffering for the output channel. +$|=1; + +# Values from /usr/include/linux/errno.h. Existence of linux/errno.ph is not +# something to count on... :-( +$ENOENT=2; + +%didthis=(); + +foreach $dir (split(/\s+/, "$execdirs"), "\0", split(/:/, $ENV{PATH})) { + + if ($dir eq "\0") { $checkingpath = 1; next; } + + # It's like this: One directory corresponds to one $device,$inode tuple + # If a symlink points to a directory we already checked that directory + # will have the same $device,$inode tuple. + + # Does this directory have any real exstence outside the ravings of + # symlinks pointing hither and dither? + ($device,$inode)=stat($dir); + if (!defined($device)) { + # Nonexistant directory, or dangling symlink? + ($dum)=lstat($dir); + next if $! == $ENOENT; + if (!$dum) { + print "Dangling symlink: $dir\n"; + next; + } + warn "Nonexistent directory: $dir\n" if ($checkingpath); + next; + } + + if (!-d _) { + print "Not a directory: $dir\n"; + next; + } + + next if defined($didthis{$device,$inode}); + + $didthis{$device,$inode}=1; + + chdir($dir) || die "Could not chdir $dir: $!\n"; +# This would give us the true directory name, do we want that? +# chop($dir=`pwd`); + opendir(DIR,".") || + die "NUTS! Personaly I think your perl or filesystem is broken.\n". + "I've done all sorts of checks on $dir, and now I can't open it!\n"; + foreach $_ (readdir(DIR)) { + lstat($_); + if (-l _) { + ($dum)=stat($_); + print "Dangling symlink: $dir/$_\n" unless defined($dum); + next; + } + next unless -f _ && -x _; # Only handle regular executable files + if (defined($count{$_})) { + $progs{$_}.=" $dir/$_"; + $count{$_}++; + } else { + $progs{$_}="$dir/$_"; + $count{$_}=1; + } + } + closedir(DIR); +} + +open(LS,"| xargs -r ls -ldU"); +while (($prog,$paths)=each %progs) { + print LS "$paths\n" if ($count{$prog}>1); +} +close(LS); + +exit 0; + +@unchecked=(); +# Check if the users PATH contains something I've not checked. The site admin +# might want to know about inconsistencies in user PATHs and chkdupexec +# configuration +foreach $dir (split(/:/,$ENV{'PATH'})) { + ($device,$inode)=stat($dir); + next unless defined($device); + next if defined($didthis{$device,$inode}); + push(@unchecked,$dir); + $didthis{$device,$inode}=1; +} + +print "Warning: Your path contains these directories which chkdupexe has not checked:\n",join(',',@unchecked), + ".\nPlease review the execdirs list in chkdupexe.\n" + if ($#unchecked>=$[); diff --git a/beagle/debian-rfs/usr/bin/chrt b/beagle/debian-rfs/usr/bin/chrt Binary files differnew file mode 100755 index 0000000..7660ede --- /dev/null +++ b/beagle/debian-rfs/usr/bin/chrt diff --git a/beagle/debian-rfs/usr/bin/chsh b/beagle/debian-rfs/usr/bin/chsh Binary files differnew file mode 100755 index 0000000..7845866 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/chsh diff --git a/beagle/debian-rfs/usr/bin/cksum b/beagle/debian-rfs/usr/bin/cksum Binary files differnew file mode 100755 index 0000000..6c35c59 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/cksum diff --git a/beagle/debian-rfs/usr/bin/clear b/beagle/debian-rfs/usr/bin/clear Binary files differnew file mode 100755 index 0000000..3a36b58 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/clear diff --git a/beagle/debian-rfs/usr/bin/clear_console b/beagle/debian-rfs/usr/bin/clear_console Binary files differnew file mode 100755 index 0000000..86bd4bf --- /dev/null +++ b/beagle/debian-rfs/usr/bin/clear_console diff --git a/beagle/debian-rfs/usr/bin/cmp b/beagle/debian-rfs/usr/bin/cmp Binary files differnew file mode 100755 index 0000000..772a452 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/cmp diff --git a/beagle/debian-rfs/usr/bin/comm b/beagle/debian-rfs/usr/bin/comm Binary files differnew file mode 100755 index 0000000..ea034c4 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/comm diff --git a/beagle/debian-rfs/usr/bin/csplit b/beagle/debian-rfs/usr/bin/csplit Binary files differnew file mode 100755 index 0000000..9e7f89f --- /dev/null +++ b/beagle/debian-rfs/usr/bin/csplit diff --git a/beagle/debian-rfs/usr/bin/cut b/beagle/debian-rfs/usr/bin/cut Binary files differnew file mode 100755 index 0000000..0c61929 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/cut diff --git a/beagle/debian-rfs/usr/bin/ddate b/beagle/debian-rfs/usr/bin/ddate Binary files differnew file mode 100755 index 0000000..f908069 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ddate diff --git a/beagle/debian-rfs/usr/bin/debconf b/beagle/debian-rfs/usr/bin/debconf new file mode 100755 index 0000000..79c0ceb --- /dev/null +++ b/beagle/debian-rfs/usr/bin/debconf @@ -0,0 +1,120 @@ +#!/usr/bin/perl -w + +=head1 NAME + +debconf - run a debconf-using program + +=cut + +=head1 SYNOPSIS + + debconf [options] command [args] + +=head1 DESCRIPTION + +Debconf is a configuration system for Debian packages. For a debconf +overview and documentation for sysadmins, see L<debconf(7)> (in the +debconf-doc package). + +The B<debconf> program runs a program under debconf's control, setting it up +to talk with debconf on stdio. The program's output is expected to be debconf +protocol commands, and it is expected to read result codes on stdin. See +L<debconf-devel(7)> for details about the debconf protocol. + +The command to be run under debconf must be specified in a way that will +let your PATH find it. + +This command is not the usual way that debconf is used. It's more typical +for debconf to be used via L<dpkg-preconfigure(8)> or L<dpkg-reconfigure(8)>. + +=head1 OPTIONS + +=over 4 + +=item B<-o>I<package>, B<--owner=>I<package> + +Tell debconf what package the command it is running is a part of. This is +necessary to get ownership of registered questions right, and to support +unregister and purge commands properly. + +=item B<-f>I<type>, B<--frontend=>I<type> + +Select the frontend to use. + +=item B<-p>I<value>, B<--priority=>I<value> + +Specify the minimum priority of question that will be displayed. + +=item B<--terse> + +Enables terse output mode. This affects only some frontends. + +=back + +=head1 EXAMPLES + +To debug a shell script that uses debconf, you might use: + + DEBCONF_DEBUG=developer debconf my-shell-prog + +Or, you might use this: + + debconf --frontend=readline sh -x my-shell-prog + +=head1 SEE ALSO + +L<debconf-devel(7)>, L<debconf(7)> + +=cut + +use strict; +use Debconf::Db; +use Debconf::AutoSelect qw(:all); +use Debconf::Gettext; +use Debconf::Config; + +# Find the end of the options for this command, and the beginning of the +# command to run, which may have arguments. Break those arguments out. +my (@argv, @command); +for (my $x=0; $x <= $#ARGV; $x++) { + if ($ARGV[$x] =~ /^-(o|f|p|-(owner|frontend|priority))$/) { + push @argv, $ARGV[$x++]; + push @argv, $ARGV[$x] if defined $ARGV[$x]; # skip option argument + next; + } + elsif ($ARGV[$x] =~ /^-/) { + push @argv, $ARGV[$x]; + } + else { + # end of arguments, start of command + @command=@ARGV[$x..$#ARGV]; + last; + } +} +@ARGV=@argv; +my $usage = gettext("Usage: debconf [options] command [args]"); +my $owner=''; +Debconf::Config->getopt($usage.gettext(qq{ + -o, --owner=package Set the package that owns the command.}), + "o|owner=s" => \$owner, +); +die "$usage\n" unless @command; + +Debconf::Db->load; +my $frontend=make_frontend(); +my $confmodule=make_confmodule(@command); +$confmodule->owner($owner) if length $owner; + +1 while ($confmodule->communicate); + +my $code=$confmodule->exitcode; +$frontend->shutdown; +$confmodule->finish; +Debconf::Db->save; +exit $code; + +=head1 AUTHOR + +Joey Hess <joeyh@debian.org> + +=cut diff --git a/beagle/debian-rfs/usr/bin/debconf-apt-progress b/beagle/debian-rfs/usr/bin/debconf-apt-progress new file mode 100755 index 0000000..c255f01 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/debconf-apt-progress @@ -0,0 +1,485 @@ +#!/usr/bin/perl -w +# This file was preprocessed, do not edit! + + +use strict; +use POSIX; +use Fcntl; +use Getopt::Long; +use Debconf::Client::ConfModule (); + +my ($config, $start, $from, $to, $stop); +my $progress=1; +my $dlwaypoint=15; +my ($logfile, $logstderr); +my $had_frontend; + +sub checkopen (@) { + my $file = $_[0]; + my $fd = POSIX::open($file, &POSIX::O_RDONLY); + defined $fd or die "$0: can't open $_[0]: $!\n"; + return $fd; +} + +sub checkclose ($) { + my $fd = $_[0]; + unless (POSIX::close($fd)) { + return if $! == &POSIX::EBADF; + die "$0: can't close fd $fd: $!\n"; + } +} + +sub checkdup2 ($$) { + my ($oldfd, $newfd) = @_; + checkclose($newfd); + POSIX::dup2($oldfd, $newfd) + or die "$0: can't dup fd $oldfd to $newfd: $!\n"; +} + +sub nocloexec (*) { + my $fh = shift; + my $flags = fcntl($fh, F_GETFD, 0); + fcntl($fh, F_SETFD, $flags & ~FD_CLOEXEC); +} + +sub nonblock (*) { + my $fh = shift; + my $flags = fcntl($fh, F_GETFL, 0); + fcntl($fh, F_SETFL, $flags | O_NONBLOCK); +} + +sub reservefds (@) { + my $null = checkopen('/dev/null'); + my $close = 1; + for my $fd (@_) { + if ($null == $fd) { + $close = 0; + } else { + checkclose($fd); + checkdup2($null, $fd); + } + } + if ($close) { + checkclose($null); + } +} + +sub envnonempty ($) { + my $name = shift; + return (exists $ENV{$name} and $ENV{$name} ne ''); +} + +sub start_debconf (@) { + if (! $ENV{DEBIAN_HAS_FRONTEND}) { + if (envnonempty('DEBCONF_DB_REPLACE')) { + $ENV{DEBCONF_APT_PROGRESS_DB_REPLACE} = + $ENV{DEBCONF_DB_REPLACE}; + } + if (envnonempty('DEBCONF_DB_OVERRIDE')) { + $ENV{DEBCONF_APT_PROGRESS_DB_OVERRIDE} = + $ENV{DEBCONF_DB_OVERRIDE}; + } + + $ENV{DEBCONF_DB_REPLACE} = 'configdb'; + $ENV{DEBCONF_DB_OVERRIDE} = 'Pipe{infd:none outfd:none}'; + + $ENV{DEBCONF_APT_PROGRESS_NO_FRONTEND} = 1; + + @ARGV = @_; + } + + import Debconf::Client::ConfModule; +} + +sub passthrough (@) { + my $priority = Debconf::Client::ConfModule::get('debconf/priority'); + + defined(my $pid = fork) or die "$0: can't fork: $!\n"; + if (!$pid) { + close STATUS_READ; + close COMMAND_WRITE; + close DEBCONF_COMMAND_READ; + close DEBCONF_REPLY_WRITE; + $^F = 6; # avoid close-on-exec + if (fileno(COMMAND_READ) != 0) { + checkdup2(fileno(COMMAND_READ), 0); + close COMMAND_READ; + } + if (fileno(APT_LOG) != 1) { + checkclose(1); + checkdup2(fileno(APT_LOG), 1); + } + if (fileno(APT_LOG) != 2) { + checkclose(2); + checkdup2(fileno(APT_LOG), 2); + } + close APT_LOG; + delete $ENV{DEBIAN_HAS_FRONTEND}; + delete $ENV{DEBCONF_REDIR}; + delete $ENV{DEBCONF_SYSTEMRC}; + delete $ENV{DEBCONF_PIPE}; # just in case ... + $ENV{DEBIAN_FRONTEND} = 'passthrough'; + $ENV{DEBIAN_PRIORITY} = $priority; + $ENV{DEBCONF_READFD} = 5; + $ENV{DEBCONF_WRITEFD} = 6; + $ENV{APT_LISTCHANGES_FRONTEND} = 'none'; + if ($had_frontend) { + $ENV{DEBCONF_DB_REPLACE} = 'configdb'; + $ENV{DEBCONF_DB_OVERRIDE} = 'Pipe{infd:none outfd:none}'; + } + exec @_; + } + + close STATUS_WRITE; + close COMMAND_READ; + close DEBCONF_COMMAND_WRITE; + close DEBCONF_REPLY_READ; + return $pid; +} + +sub handle_status ($$$) { + my ($from, $to, $line) = @_; + my ($status, $pkg, $percent, $description) = split ':', $line, 4; + + my ($min, $len); + if ($status eq 'dlstatus') { + $min = 0; + $len = $dlwaypoint; + } + elsif ($status eq 'pmstatus') { + $min = $dlwaypoint; + $len = 100 - $dlwaypoint; + } + elsif ($status eq 'media-change') { + Debconf::Client::ConfModule::subst( + 'debconf-apt-progress/media-change', 'MESSAGE', + $description); + my @ret = Debconf::Client::ConfModule::input( + 'critical', 'debconf-apt-progress/media-change'); + $ret[0] == 0 or die "Can't display media change request!\n"; + Debconf::Client::ConfModule::go(); + print COMMAND_WRITE "\n" || die "can't talk to command fd: $!"; + return; + } + else { + return; + } + + $percent = ($percent * $len / 100 + $min); + $percent = ($percent * ($to - $from) / 100 + $from); + $percent =~ s/\..*//; + if ($progress) { + my @ret=Debconf::Client::ConfModule::progress('SET', $percent); + if ($ret[0] eq '30') { + cancel(); + } + } + Debconf::Client::ConfModule::subst( + 'debconf-apt-progress/info', 'DESCRIPTION', $description); + my @ret=Debconf::Client::ConfModule::progress( + 'INFO', 'debconf-apt-progress/info'); + if ($ret[0] eq '30') { + cancel(); + } +} + +sub handle_debconf_command ($) { + my $line = shift; + + print "$line\n" || die "can't write to stdout: $!"; + my $ret = <STDIN>; + chomp $ret; + print DEBCONF_REPLY_WRITE "$ret\n" || + die "can't write to DEBCONF_REPLY_WRITE: $!"; +} + +my $pid; +sub run_progress ($$@) { + my $from = shift; + my $to = shift; + my $command = shift; + local (*STATUS_READ, *STATUS_WRITE); + local (*COMMAND_READ, *COMMAND_WRITE); + local (*DEBCONF_COMMAND_READ, *DEBCONF_COMMAND_WRITE); + local (*DEBCONF_REPLY_READ, *DEBCONF_REPLY_WRITE); + local *APT_LOG; + use IO::Handle; + + if ($progress) { + my @ret=Debconf::Client::ConfModule::progress( + 'INFO', 'debconf-apt-progress/preparing'); + if ($ret[0] eq '30') { + cancel(); + return 30; + } + } + + reservefds(4, 5, 6); + + pipe STATUS_READ, STATUS_WRITE + or die "$0: can't create status pipe: $!"; + nonblock(\*STATUS_READ); + checkdup2(fileno(STATUS_WRITE), 4); + open STATUS_WRITE, '>&=4' + or die "$0: can't reopen STATUS_WRITE as fd 4: $!"; + nocloexec(\*STATUS_WRITE); + + pipe COMMAND_READ, COMMAND_WRITE + or die "$0: can't create command pipe: $!"; + nocloexec(\*COMMAND_READ); + COMMAND_WRITE->autoflush(1); + + pipe DEBCONF_COMMAND_READ, DEBCONF_COMMAND_WRITE + or die "$0: can't create debconf command pipe: $!"; + nonblock(\*DEBCONF_COMMAND_READ); + checkdup2(fileno(DEBCONF_COMMAND_WRITE), 6); + open DEBCONF_COMMAND_WRITE, '>&=6' + or die "$0: can't reopen DEBCONF_COMMAND_WRITE as fd 6: $!"; + nocloexec(\*DEBCONF_COMMAND_WRITE); + + pipe DEBCONF_REPLY_READ, DEBCONF_REPLY_WRITE + or die "$0: can't create debconf reply pipe: $!"; + checkdup2(fileno(DEBCONF_REPLY_READ), 5); + open DEBCONF_REPLY_READ, '<&=5' + or die "$0: can't reopen DEBCONF_REPLY_READ as fd 5: $!"; + nocloexec(\*DEBCONF_REPLY_READ); + DEBCONF_REPLY_WRITE->autoflush(1); + + if (defined $logfile) { + open APT_LOG, '>>', $logfile + or die "$0: can't open $logfile: $!"; + } elsif ($logstderr) { + open APT_LOG, '>&STDERR' + or die "$0: can't duplicate stderr: $!"; + } else { + open APT_LOG, '>', '/dev/null' + or die "$0: can't open /dev/null: $!"; + } + nocloexec(\*APT_LOG); + + $pid = passthrough $command, + '-o', 'APT::Status-Fd=4', + '-o', 'APT::Keep-Fds::=5', + '-o', 'APT::Keep-Fds::=6', + @_; + + my $status_eof = 0; + my $debconf_command_eof = 0; + my $status_buf = ''; + my $debconf_command_buf = ''; + + while (not $status_eof) { + my $rin = ''; + my $rout; + vec($rin, fileno(STATUS_READ), 1) = 1; + vec($rin, fileno(DEBCONF_COMMAND_READ), 1) = 1 + unless $debconf_command_eof; + my $sel = select($rout = $rin, undef, undef, undef); + if ($sel < 0) { + next if $! == &POSIX::EINTR; + die "$0: select failed: $!"; + } + + if (vec($rout, fileno(STATUS_READ), 1) == 1) { + while (1) { + my $r = sysread(STATUS_READ, $status_buf, 4096, + length $status_buf); + if (not defined $r) { + next if $! == &POSIX::EINTR; + last if $! == &POSIX::EAGAIN or + $! == &POSIX::EWOULDBLOCK; + die "$0: read STATUS_READ failed: $!"; + } + elsif ($r == 0) { + if ($status_buf ne '' and + $status_buf !~ /\n$/) { + $status_buf .= "\n"; + } + $status_eof = 1; + last; + } + last if $status_buf =~ /\n/; + } + + while ($status_buf =~ /\n/) { + my $status_line; + ($status_line, $status_buf) = + split /\n/, $status_buf, 2; + handle_status $from, $to, $status_line; + } + } + + if (vec($rout, fileno(DEBCONF_COMMAND_READ), 1) == 1) { + while (1) { + my $r = sysread(DEBCONF_COMMAND_READ, + $debconf_command_buf, 4096, + length $debconf_command_buf); + if (not defined $r) { + next if $! == &POSIX::EINTR; + last if $! == &POSIX::EAGAIN or + $! == &POSIX::EWOULDBLOCK; + die "$0: read DEBCONF_COMMAND_READ " . + "failed: $!"; + } + elsif ($r == 0) { + if ($debconf_command_buf ne '' and + $debconf_command_buf !~ /\n$/) { + $debconf_command_buf .= "\n"; + } + $debconf_command_eof = 1; + last; + } + last if $debconf_command_buf =~ /\n/; + } + + while ($debconf_command_buf =~ /\n/) { + my $debconf_command_line; + ($debconf_command_line, $debconf_command_buf) = + split /\n/, $debconf_command_buf, 2; + handle_debconf_command $debconf_command_line; + } + } + } + + waitpid $pid, 0; + undef $pid; + my $status = $?; + + if ($progress) { + my @ret=Debconf::Client::ConfModule::progress('SET', $to); + if ($ret[0] eq '30') { + cancel(); + } + } + + if ($status & 127) { + return 127; + } + + return ($status >> 8); +} + +my $cancelled=0; +my $cancel_sent_signal=0; +sub cancel () { + $cancelled++; + if (defined $pid) { + $cancel_sent_signal++; + if ($cancel_sent_signal == 1) { + kill INT => $pid; + } + else { + kill KILL => $pid; + } + } +} + +sub start_bar ($$) { + my ($from, $to) = @_; + if ($progress) { + Debconf::Client::ConfModule::progress( + 'START', $from, $to, 'debconf-apt-progress/title'); + my @ret=Debconf::Client::ConfModule::progress( + 'INFO', 'debconf-apt-progress/preparing'); + if ($ret[0] eq '30') { + cancel(); + } + } +} + +sub stop_bar () { + Debconf::Client::ConfModule::progress('STOP') if $progress; + Debconf::Client::ConfModule::stop() unless $had_frontend; +} + +if (envnonempty('DEBCONF_APT_PROGRESS_DB_REPLACE')) { + $ENV{DEBCONF_DB_REPLACE} = $ENV{DEBCONF_APT_PROGRESS_DB_REPLACE}; +} else { + delete $ENV{DEBCONF_DB_REPLACE}; +} +if (envnonempty('DEBCONF_APT_PROGRESS_DB_OVERRIDE')) { + $ENV{DEBCONF_DB_OVERRIDE} = $ENV{DEBCONF_APT_PROGRESS_DB_OVERRIDE}; +} else { + delete $ENV{DEBCONF_DB_OVERRIDE}; +} +$had_frontend = 1 unless $ENV{DEBCONF_APT_PROGRESS_NO_FRONTEND}; +delete $ENV{DEBCONF_APT_PROGRESS_NO_FRONTEND}; # avoid inheritance + +my @saved_argv = @ARGV; + +my $result = GetOptions('config' => \$config, + 'start' => \$start, + 'from=i' => \$from, + 'to=i' => \$to, + 'stop' => \$stop, + 'logfile=s' => \$logfile, + 'logstderr' => \$logstderr, + 'progress!' => \$progress, + 'dlwaypoint=i' => \$dlwaypoint, +); + +if (! $progress && ($start || $from || $to || $stop)) { + die "--no-progress cannot be used with --start, --from, --to, or --stop\n"; +} + +unless ($start) { + if (defined $from and not defined $to) { + die "$0: --from requires --to\n"; + } elsif (defined $to and not defined $from) { + die "$0: --to requires --from\n"; + } +} + +my $mutex = 0; +++$mutex if $config; +++$mutex if $start; +++$mutex if $stop; +if ($mutex > 1) { + die "$0: must use only one of --config, --start, or --stop\n"; +} + +if (($config or $stop) and (defined $from or defined $to)) { + die "$0: cannot use --from or --to with --config or --stop\n"; +} + +start_debconf(@saved_argv) unless $config; + +my $status = 0; + +if ($config) { + print <<'EOF'; +DEBCONF_APT_PROGRESS_DB_REPLACE="$DEBCONF_DB_REPLACE" +DEBCONF_APT_PROGRESS_DB_OVERRIDE="$DEBCONF_DB_OVERRIDE" +export DEBCONF_APT_PROGRESS_DB_REPLACE DEBCONF_APT_PROGRESS_DB_OVERRIDE +DEBCONF_DB_REPLACE=configdb +DEBCONF_DB_OVERRIDE='Pipe{infd:none outfd:none}' +export DEBCONF_DB_REPLACE DEBCONF_DB_OVERRIDE +EOF +} elsif ($start) { + $from = 0 unless defined $from; + $to = 100 unless defined $to; + start_bar($from, $to); +} elsif (defined $from) { + $status = run_progress($from, $to, @ARGV); +} elsif ($stop) { + stop_bar(); +} else { + start_bar(0, 100); + if (! $cancelled) { + $status = run_progress(0, 100, @ARGV); + stop_bar(); + } +} + +if ($cancelled) { + Debconf::Client::ConfModule::get("debconf/priority"); + + exit 30; +} +elsif ($status == 30) { + exit 3; +} +else { + exit $status; +} + diff --git a/beagle/debian-rfs/usr/bin/debconf-communicate b/beagle/debian-rfs/usr/bin/debconf-communicate new file mode 100755 index 0000000..771def8 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/debconf-communicate @@ -0,0 +1,34 @@ +#!/usr/bin/perl -w +# This file was preprocessed, do not edit! + + + +use strict; +use Debconf::Db; +use Debconf::AutoSelect qw(:all); +use Debconf::Config; +use Debconf::Gettext; + +Debconf::Db->load; + +Debconf::Config->getopt(gettext("Usage: debconf-communicate [options] [package]")); + +my $frontend=make_frontend(); +my $confmodule=make_confmodule(); +$confmodule->owner(shift) if @ARGV; +my $code=127; +autoflush STDOUT 1; + +while (<>) { + chomp; + my $ret=$confmodule->process_command($_); + ($code, undef)=split(/ /, $ret, 2); + print "$ret\n"; +} + +$frontend->shutdown; +$confmodule->finish; +Debconf::Db->save; +exit $code; + + diff --git a/beagle/debian-rfs/usr/bin/debconf-copydb b/beagle/debian-rfs/usr/bin/debconf-copydb new file mode 100755 index 0000000..82d9e2f --- /dev/null +++ b/beagle/debian-rfs/usr/bin/debconf-copydb @@ -0,0 +1,82 @@ +#!/usr/bin/perl -w +# This file was preprocessed, do not edit! + + +use strict; +use Getopt::Long; +use Debconf::Log qw{:all}; +use Debconf::Db; +use Debconf::DbDriver; +use Debconf::DbDriver::Backup; + + +sub usage { + print STDERR <<EOF; +Usage: debconf-copydb sourcedb destdb [--pattern=pattern] [--owner-pattern=pattern] [--config=Foo:bar] +EOF + exit(1); +} + + +my $pattern='.*'; +my $owner_pattern; + +my %config; +sub config { + my ($field, $value)=split(/\s*:\s*/, $_[1], 2); + $field=~tr/-/_/; + $field=lc($field); + die "Parse error: \"$_[1]\"" unless defined $field and length $field; + + if ($field eq 'name') { + if ($config{name}) { + Debconf::Db->makedriver(%config); + } + elsif (%config) { + warn "ignoring command line config data before $_[1]"; + } + %config=(); + } + + $config{$field}=$value; +} + +GetOptions( + "pattern|p=s" => \$pattern, + "config|c=s" => \&config, + "owner-pattern=s" => \$owner_pattern, +) || usage(); +Debconf::Db->makedriver(%config) if %config; + +my $srcname=shift || usage(); +my $destname=shift || usage(); + +Debconf::Db->load; + +my $src=Debconf::DbDriver->driver($srcname); +die "$0: source database, \"$srcname\" does not exist\n" unless ref $src; +my $dest=Debconf::DbDriver->driver($destname); +die "$0: destination database, \"$destname\" does not exist\n" unless ref $dest; + +my $copier=Debconf::DbDriver::Backup->new( + db => $src, backupdb => $dest, name => 'copier'); + +my $i=$copier->iterator; +while (my $item=$i->iterate) { + next unless $item =~ /$pattern/; + + if (defined $owner_pattern) { + my $fit_owner = 0; + my $owner; + foreach $owner ($src->owners($item)){ + $fit_owner = 1 if $owner =~ /$owner_pattern/; + } + next unless $fit_owner; + } + + $copier->copy($item, $src, $dest); +} + +$copier->shutdown; + + diff --git a/beagle/debian-rfs/usr/bin/debconf-escape b/beagle/debian-rfs/usr/bin/debconf-escape new file mode 100755 index 0000000..fdff906 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/debconf-escape @@ -0,0 +1,47 @@ +#!/usr/bin/perl -w +# This file was preprocessed, do not edit! + + +use strict; +use Getopt::Long; + +use vars qw($escape $unescape); + +sub usage { + print STDERR <<EOF; +Usage: debconf-unescape -e|-u < input-text + -e, --escape escape text + -u, --unescape unescape text + +Exactly one of -e or -u must be used. +EOF + exit(1); +} + +$escape=0; +$unescape=0; + +GetOptions( + "escape|e" => \$escape, + "unescape|u" => \$unescape, +) || usage(); + +if ($escape == $unescape) { + usage(); +} + +if ($escape) { + while (<>) { + s/\\/\\\\/g; + s/\n/\\n/g; + print; + } +} else { + while (<>) { + for (split /(\\.)/) { + s/\\(.)/$1 eq "n" ? "\n" : $1/eg; + print; + } + } +} + diff --git a/beagle/debian-rfs/usr/bin/debconf-set-selections b/beagle/debian-rfs/usr/bin/debconf-set-selections new file mode 100755 index 0000000..abf361c --- /dev/null +++ b/beagle/debian-rfs/usr/bin/debconf-set-selections @@ -0,0 +1,148 @@ +#!/usr/bin/perl +# This file was preprocessed, do not edit! + + +sub usage { + print STDERR <<EOF; +Usage: debconf-set-selections [-vcu] [file] + -v, --verbose verbose output + -c, --checkonly only check the input file format + -u, --unseen do not set the 'seen' flag when preseeding values +EOF + exit(1); +} + + +use warnings; +use strict; +use Debconf::Db; +use Debconf::Template; +use Getopt::Long; + +use vars qw(%opts $filename $debug $error $checkonly $unseen); + +sub info { + my $msg = shift; + print STDERR "info: $msg\n" if $debug; +} + +sub warning { + my $msg = shift; + print STDERR "warning: $msg\n"; +} + +sub error { + my $msg = shift; + print STDERR "error: $msg\n"; + $error++ +} + +sub load_answer { + my ($owner, $label, $type, $content) = @_; + + info "Loading answer for '$label'"; + + my $template=Debconf::Template->get($label); + if (! $template) { + $template=Debconf::Template->new($label, $owner, $type); + $template->description("Dummy template"); + $template->extended_description("This is a fake template used to pre-seed the debconf database. If you are seeing this, something is probably wrong."); + } + else { + $template->default($content); + } + $template->type($type); + + my $question=Debconf::Question->get($label); + if (! $question) { + error("Cannot find a question for $label"); + return; + } + $question->addowner($owner, $type); + $question->value($content); + if (! $unseen) { + $question->flag("seen", "true"); + } +} + +sub set_flag { + my ($owner, $label, $flag, $content) = @_; + + info "Setting $flag flag"; + + my $question=Debconf::Question->get($label); + if (! $question) { + error("Cannot find a question for $label"); + return; + } + $question->flag($flag, $content); +} + +my @knowntypes = qw(select boolean string multiselect note password text title); +my @knownflags = qw(seen); + +sub ok_format { + my ($owner, $label, $type, $content) = @_; + if (! defined $owner || ! defined $label || ! defined $content) { + error "parse error on line $.: '$_'"; + return; + } + elsif (! grep { $_ eq $type } @knowntypes, @knownflags) { + warning "Unknown type $type, skipping line $."; + return; + } + else { + return 1; + } +} + +sub mungeline ($) { + my $line=shift; + chomp $line; + $line=~s/\#.*$//; + $line=~s/\r$//; + return $line; +} + + +GetOptions( + "verbose|v" => \$debug, + "checkonly|c" => \$checkonly, + "unseen|u" => \$unseen, +) || usage(); + +Debconf::Db->load; + +$error = 0; + +while (<>) { + $_=mungeline($_); + while (/\\$/ && ! eof) { + s/\\$//; + $_.=mungeline(<>); + } + next if /^\s*$/; + my ($owner, $label, $type, $content) = /^\s*(\S+)\s+(\S+)\s+(\S+)(?:\s(.*))?/; + if (! defined $content) { + $content=''; + } + if (ok_format($owner, $label, $type, $content)) { + if (grep { $_ eq $type } @knownflags) { + info "Trying to set '$type' flag to '$content'"; + set_flag($owner, $label, $type, $content); + } + else { + info "Trying to set '$label' [$type] to '$content'"; + load_answer($owner, $label, $type, $content); + } + } +} + +if (! $checkonly) { + Debconf::Db->save; +} + +if ($error) { + exit 1; +} + diff --git a/beagle/debian-rfs/usr/bin/debconf-show b/beagle/debian-rfs/usr/bin/debconf-show new file mode 100755 index 0000000..b47fef4 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/debconf-show @@ -0,0 +1,103 @@ +#!/usr/bin/perl +# This file was preprocessed, do not edit! + + +sub usage { + print STDERR <<EOF; +Usage: + debconf-show packagename [...] [--db=dbname] + debconf-show --listowners [--db=dbname] + debconf-show --listdbs +EOF + exit(1); +} + + +use strict; +use warnings; +use Debconf::Db; +use Debconf::Template; +use Debconf::Question; +use Getopt::Long; + +my $db=''; +my $listowners=0; +my @packages; +my $listdbs=0; + +GetOptions( + "db=s" => \$db, + "listowners" => \$listowners, + "listdbs" => \$listdbs, +) || usage(); + +unless ($listowners or $listdbs) { + @packages=@ARGV; + usage() unless @packages; +} + +Debconf::Db->load(readonly => 'true'); + +my %drivers = %Debconf::DbDriver::drivers; +my $conf = Debconf::Config->config; + +sub tree { + my $node=shift; + my $string=shift || ""; + my $driver = Debconf::DbDriver->driver($node); + my $name = $driver->{name}; + + $string = $string.$name; + print $string."\n"; + + if ($driver->isa("Debconf::DbDriver::Stack")) { + $string=$string.'/'; + map { tree($_->{name},$string) } @{$driver->{stack}}; + } +} + +if ($db) { + my $driver = $drivers{$db}; + die $db.": unknown database" unless defined($driver); + $Debconf::Db::config = $driver; +} + +my $qi=Debconf::Question->iterator; + +if ($listdbs) { + tree($conf); +} +elsif (@packages) { + while (my $q=$qi->iterate) { + foreach my $package (@packages) { + if (grep { $package eq $_} split(/, /, $q->owners)) { + if ($q->flag("seen") eq 'true') { + print "* "; + } + else { + print " "; + } + print $q->name.":"; + if ($q->type eq 'password') { + print " (password omitted)"; + } + elsif (length $q->value) { + print " ".$q->value; + } + print "\n"; + } + } + } +} +elsif ($listowners) { + my %seen; + while (my $q=$qi->iterate) { + foreach (split(/, /, $q->owners)) { + unless ($seen{$_}) { + print "$_\n"; + $seen{$_}=1; + } + } + } +} + diff --git a/beagle/debian-rfs/usr/bin/delpart b/beagle/debian-rfs/usr/bin/delpart Binary files differnew file mode 100755 index 0000000..5082350 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/delpart diff --git a/beagle/debian-rfs/usr/bin/diff b/beagle/debian-rfs/usr/bin/diff Binary files differnew file mode 100755 index 0000000..0ab3527 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/diff diff --git a/beagle/debian-rfs/usr/bin/diff3 b/beagle/debian-rfs/usr/bin/diff3 Binary files differnew file mode 100755 index 0000000..675fd4b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/diff3 diff --git a/beagle/debian-rfs/usr/bin/dircolors b/beagle/debian-rfs/usr/bin/dircolors Binary files differnew file mode 100755 index 0000000..df9ef4a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dircolors diff --git a/beagle/debian-rfs/usr/bin/dirname b/beagle/debian-rfs/usr/bin/dirname Binary files differnew file mode 100755 index 0000000..5d23f28 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dirname diff --git a/beagle/debian-rfs/usr/bin/dpkg b/beagle/debian-rfs/usr/bin/dpkg Binary files differnew file mode 100755 index 0000000..d8a4c0f --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dpkg diff --git a/beagle/debian-rfs/usr/bin/dpkg-deb b/beagle/debian-rfs/usr/bin/dpkg-deb Binary files differnew file mode 100755 index 0000000..c84625b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dpkg-deb diff --git a/beagle/debian-rfs/usr/bin/dpkg-divert b/beagle/debian-rfs/usr/bin/dpkg-divert Binary files differnew file mode 100755 index 0000000..d048e6c --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dpkg-divert diff --git a/beagle/debian-rfs/usr/bin/dpkg-maintscript-helper b/beagle/debian-rfs/usr/bin/dpkg-maintscript-helper new file mode 100755 index 0000000..def6b67 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dpkg-maintscript-helper @@ -0,0 +1,324 @@ +#!/bin/sh +# +# Copyright © 2010 Raphaël Hertzog <hertzog@debian.org> +# Copyright © 2008 Joey Hess <joeyh@debian.org> +# Copyright © 2007 Guillem Jover (modifications on wiki.debian.org) +# Copyright © 2005 Scott James Remnant (original implementation on www.dpkg.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 <http://www.gnu.org/licenses/>. + +# The conffile related functions are inspired by +# http://wiki.debian.org/DpkgConffileHandling + +# This script is documented in dpkg-maintscript-helper(1) + +## +## Functions to remove an obsolete conffile during upgrade +## +rm_conffile() { + local CONFFILE="$1" + local LASTVERSION="$2" + local PACKAGE="$3" + if [ "$LASTVERSION" = "--" ]; then + LASTVERSION="" + PACKAGE="$DPKG_MAINTSCRIPT_PACKAGE" + fi + if [ "$PACKAGE" = "--" -o -z "$PACKAGE" ]; then + PACKAGE="$DPKG_MAINTSCRIPT_PACKAGE" + fi + # Skip remaining parameters up to -- + while [ "$1" != "--" -a $# -gt 0 ]; do shift; done + [ $# -gt 0 ] || badusage + shift + + [ -n "$PACKAGE" ] || error "couldn't identify the package" + [ -n "$1" ] || error "maintainer script parameters are missing" + [ -n "$DPKG_MAINTSCRIPT_NAME" ] || \ + error "environment variable DPKG_MAINTSCRIPT_NAME is required" + + debug "Executing $0 rm_conffile in $DPKG_MAINTSCRIPT_NAME "\ + "of $DPKG_MAINTSCRIPT_PACKAGE" + debug "CONFFILE=$CONFFILE PACKAGE=$PACKAGE "\ + "LASTVERSION=$LASTVERSION ACTION=$1 PARAM=$2" + case "$DPKG_MAINTSCRIPT_NAME" in + preinst) + if [ "$1" = "install" -o "$1" = "upgrade" ] && [ -n "$2" ] && + dpkg --compare-versions "$2" le-nl "$LASTVERSION"; then + prepare_rm_conffile "$CONFFILE" "$PACKAGE" + fi + ;; + postinst) + if [ "$1" = "configure" ] && [ -n "$2" ] && + dpkg --compare-versions "$2" le-nl "$LASTVERSION"; then + finish_rm_conffile $CONFFILE + fi + ;; + postrm) + if [ "$1" = "purge" ]; then + rm -f "$CONFFILE.dpkg-bak" "$CONFFILE.dpkg-remove" \ + "$CONFFILE.dpkg-backup" + fi + if [ "$1" = "abort-install" -o "$1" = "abort-upgrade" ] && + [ -n "$2" ] && + dpkg --compare-versions "$2" le-nl "$LASTVERSION"; then + abort_rm_conffile "$CONFFILE" + fi + ;; + *) + debug "$0 rm_conffile not required in $DPKG_MAINTSCRIPT_NAME" + ;; + esac +} + +prepare_rm_conffile() { + local CONFFILE="$1" + local PACKAGE="$2" + + [ -e "$CONFFILE" ] || return 0 + + local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')" + local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PACKAGE | \ + sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE.dpkg-backup" + else + echo "Moving obsolete conffile $CONFFILE out of the way..." + mv -f "$CONFFILE" "$CONFFILE.dpkg-remove" + fi +} + +finish_rm_conffile() { + local CONFFILE="$1" + + if [ -e "$CONFFILE.dpkg-backup" ]; then + mv -f "$CONFFILE.dpkg-backup" "$CONFFILE.dpkg-bak" + fi + if [ -e "$CONFFILE.dpkg-remove" ]; then + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE.dpkg-remove" + fi +} + +abort_rm_conffile() { + local CONFFILE="$1" + + if [ -e "$CONFFILE.dpkg-remove" ]; then + echo "Reinstalling $CONFFILE that was moved away" + mv "$CONFFILE.dpkg-remove" "$CONFFILE" + fi + if [ -e "$CONFFILE.dpkg-backup" ]; then + echo "Reinstalling $CONFFILE that was backupped" + mv "$CONFFILE.dpkg-backup" "$CONFFILE" + fi +} + +## +## Functions to rename a conffile during upgrade +## +mv_conffile() { + local OLDCONFFILE="$1" + local NEWCONFFILE="$2" + local LASTVERSION="$3" + local PACKAGE="$4" + if [ "$LASTVERSION" = "--" ]; then + LASTVERSION="" + PACKAGE="$DPKG_MAINTSCRIPT_PACKAGE" + fi + if [ "$PACKAGE" = "--" -o -z "$PACKAGE" ]; then + PACKAGE="$DPKG_MAINTSCRIPT_PACKAGE" + fi + # Skip remaining parameters up to -- + while [ "$1" != "--" -a $# -gt 0 ]; do shift; done + [ $# -gt 0 ] || badusage + shift + + [ -n "$PACKAGE" ] || error "couldn't identify the package" + [ -n "$1" ] || error "maintainer script parameters are missing" + [ -n "$DPKG_MAINTSCRIPT_NAME" ] || \ + error "environment variable DPKG_MAINTSCRIPT_NAME is required" + + debug "Executing $0 mv_conffile in $DPKG_MAINTSCRIPT_NAME "\ + "of $DPKG_MAINTSCRIPT_PACKAGE" + debug "CONFFILE=$OLDCONFFILE -> $NEWCONFFILE PACKAGE=$PACKAGE "\ + "LASTVERSION=$LASTVERSION ACTION=$1 PARAM=$2" + case "$DPKG_MAINTSCRIPT_NAME" in + preinst) + if [ "$1" = "install" -o "$1" = "upgrade" ] && [ -n "$2" ] && + dpkg --compare-versions "$2" le-nl "$LASTVERSION"; then + prepare_mv_conffile "$OLDCONFFILE" "$PACKAGE" + fi + ;; + postinst) + if [ "$1" = "configure" ] && [ -n "$2" ] && + dpkg --compare-versions "$2" le-nl "$LASTVERSION"; then + finish_mv_conffile "$OLDCONFFILE" "$NEWCONFFILE" + fi + ;; + postrm) + if [ "$1" = "abort-install" -o "$1" = "abort-upgrade" ] && + [ -n "$2" ] && + dpkg --compare-versions "$2" le-nl "$LASTVERSION"; then + abort_mv_conffile "$OLDCONFFILE" + fi + ;; + *) + debug "$0 mv_conffile not required in $DPKG_MAINTSCRIPT_NAME" + ;; + esac +} + +prepare_mv_conffile() { + local CONFFILE="$1" + local PACKAGE="$2" + + [ -e "$CONFFILE" ] || return 0 + + local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')" + local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PACKAGE | \ + sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" + if [ "$md5sum" = "$old_md5sum" ]; then + mv -f "$CONFFILE" "$CONFFILE.dpkg-remove" + fi +} + +finish_mv_conffile() { + local OLDCONFFILE="$1" + local NEWCONFFILE="$2" + + rm -f $OLDCONFFILE.dpkg-remove + + [ -e "$OLDCONFFILE" ] || return 0 + + echo "Preserving user changes to $NEWCONFFILE (renamed from $OLDCONFFILE)..." + mv -f "$NEWCONFFILE" "$NEWCONFFILE.dpkg-new" + mv -f "$OLDCONFFILE" "$NEWCONFFILE" +} + +abort_mv_conffile() { + local CONFFILE="$1" + + if [ -e "$CONFFILE.dpkg-remove" ]; then + echo "Reinstalling $CONFFILE that was moved away" + mv "$CONFFILE.dpkg-remove" "$CONFFILE" + fi +} + +# Common functions +debug() { + if [ -n "$DPKG_DEBUG" ]; then + echo "DEBUG: $PROGNAME: $1" >&2 + fi +} + +error() { + echo "$PROGNAME: error: $1" >&2 + exit 1 +} + +warning() { + echo "$PROGNAME: warning: $1" >&2 +} + +usage() { + cat <<END +Syntax: $0 <command> <parameters> -- <maintainer script parameters> + +Commands and parameters: + + supports <command> + Returns 0 (success) if the given command is supported, 1 + otherwise. + + rm_conffile <conffile> [<last-version> [<package>]] + Remove obsolete conffile. + Must be called in preinst, postinst and postrm. + + mv_conffile <old-conf> <new-conf> [<last-version> [<package>]] + Rename a conffile. + Must be called in preinst, postinst and postrm. + + help + Display this usage information. +END +} + +badusage() { + usage + exit 1 +} + +# Main code +set -e + +PROGNAME=$(basename $0) +version="1.15.8.10" +command="$1" +[ $# -gt 0 ] || badusage +shift + +case "$command" in +supports) + case "$1" in + rm_conffile|mv_conffile) + code=0 + ;; + *) + code=1 + ;; + esac + if [ -z "$DPKG_MAINTSCRIPT_NAME" ]; then + warning "environment variable DPKG_MAINTSCRIPT_NAME missing" + code=1 + fi + if [ -z "$DPKG_MAINTSCRIPT_PACKAGE" ]; then + warning "environment variable DPKG_MAINTSCRIPT_PACKAGE missing" + code=1 + fi + exit $code + ;; +rm_conffile) + rm_conffile "$@" + ;; +mv_conffile) + mv_conffile "$@" + ;; +--help|help|-?|-h) + usage + ;; +--version) + cat <<-END + Debian $PROGNAME version $version. + + Copyright (C) 2010 Raphaël Hertzog <hertzog@debian.org> + Copyright (C) 2008 Joey Hess <joeyh@debian.org> + Copyright (C) 2007 Guillem Jover <guillem@debian.org> + Copyright (C) 2005 Scott James Remnant + + This is free software; see the GNU General Public License version 2 or + later for copying conditions. There is NO warranty. + END + ;; +*) + cat >&2 <<-END + $PROGNAME: error: command $command is unknown + Hint: upgrading dpkg to a newer version might help. + + END + usage + exit 1 +esac + +exit 0 diff --git a/beagle/debian-rfs/usr/bin/dpkg-query b/beagle/debian-rfs/usr/bin/dpkg-query Binary files differnew file mode 100755 index 0000000..bbf69fe --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dpkg-query diff --git a/beagle/debian-rfs/usr/bin/dpkg-split b/beagle/debian-rfs/usr/bin/dpkg-split Binary files differnew file mode 100755 index 0000000..725f827 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dpkg-split diff --git a/beagle/debian-rfs/usr/bin/dpkg-statoverride b/beagle/debian-rfs/usr/bin/dpkg-statoverride Binary files differnew file mode 100755 index 0000000..adaf31a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dpkg-statoverride diff --git a/beagle/debian-rfs/usr/bin/dpkg-trigger b/beagle/debian-rfs/usr/bin/dpkg-trigger Binary files differnew file mode 100755 index 0000000..37ee09b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/dpkg-trigger diff --git a/beagle/debian-rfs/usr/bin/du b/beagle/debian-rfs/usr/bin/du Binary files differnew file mode 100755 index 0000000..b497ced --- /dev/null +++ b/beagle/debian-rfs/usr/bin/du diff --git a/beagle/debian-rfs/usr/bin/env b/beagle/debian-rfs/usr/bin/env Binary files differnew file mode 100755 index 0000000..a7c4616 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/env diff --git a/beagle/debian-rfs/usr/bin/expand b/beagle/debian-rfs/usr/bin/expand Binary files differnew file mode 100755 index 0000000..cad6d8b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/expand diff --git a/beagle/debian-rfs/usr/bin/expiry b/beagle/debian-rfs/usr/bin/expiry Binary files differnew file mode 100755 index 0000000..de8721f --- /dev/null +++ b/beagle/debian-rfs/usr/bin/expiry diff --git a/beagle/debian-rfs/usr/bin/expr b/beagle/debian-rfs/usr/bin/expr Binary files differnew file mode 100755 index 0000000..d409159 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/expr diff --git a/beagle/debian-rfs/usr/bin/factor b/beagle/debian-rfs/usr/bin/factor Binary files differnew file mode 100755 index 0000000..a49927c --- /dev/null +++ b/beagle/debian-rfs/usr/bin/factor diff --git a/beagle/debian-rfs/usr/bin/faillog b/beagle/debian-rfs/usr/bin/faillog Binary files differnew file mode 100755 index 0000000..f1628f5 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/faillog diff --git a/beagle/debian-rfs/usr/bin/fallocate b/beagle/debian-rfs/usr/bin/fallocate Binary files differnew file mode 100755 index 0000000..7100cff --- /dev/null +++ b/beagle/debian-rfs/usr/bin/fallocate diff --git a/beagle/debian-rfs/usr/bin/find b/beagle/debian-rfs/usr/bin/find Binary files differnew file mode 100755 index 0000000..f1f13e3 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/find diff --git a/beagle/debian-rfs/usr/bin/flock b/beagle/debian-rfs/usr/bin/flock Binary files differnew file mode 100755 index 0000000..2312a76 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/flock diff --git a/beagle/debian-rfs/usr/bin/fmt b/beagle/debian-rfs/usr/bin/fmt Binary files differnew file mode 100755 index 0000000..ce88c48 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/fmt diff --git a/beagle/debian-rfs/usr/bin/fold b/beagle/debian-rfs/usr/bin/fold Binary files differnew file mode 100755 index 0000000..246e8b7 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/fold diff --git a/beagle/debian-rfs/usr/bin/getconf b/beagle/debian-rfs/usr/bin/getconf Binary files differnew file mode 100755 index 0000000..1f73b8b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/getconf diff --git a/beagle/debian-rfs/usr/bin/getent b/beagle/debian-rfs/usr/bin/getent Binary files differnew file mode 100755 index 0000000..fbd1553 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/getent diff --git a/beagle/debian-rfs/usr/bin/getopt b/beagle/debian-rfs/usr/bin/getopt Binary files differnew file mode 100755 index 0000000..98e4dfd --- /dev/null +++ b/beagle/debian-rfs/usr/bin/getopt diff --git a/beagle/debian-rfs/usr/bin/gpasswd b/beagle/debian-rfs/usr/bin/gpasswd Binary files differnew file mode 100755 index 0000000..6fc6a52 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/gpasswd diff --git a/beagle/debian-rfs/usr/bin/groups b/beagle/debian-rfs/usr/bin/groups Binary files differnew file mode 100755 index 0000000..af7347b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/groups diff --git a/beagle/debian-rfs/usr/bin/head b/beagle/debian-rfs/usr/bin/head Binary files differnew file mode 100755 index 0000000..3932a30 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/head diff --git a/beagle/debian-rfs/usr/bin/hostid b/beagle/debian-rfs/usr/bin/hostid Binary files differnew file mode 100755 index 0000000..7d04a50 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/hostid diff --git a/beagle/debian-rfs/usr/bin/iconv b/beagle/debian-rfs/usr/bin/iconv Binary files differnew file mode 100755 index 0000000..4173cf6 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/iconv diff --git a/beagle/debian-rfs/usr/bin/id b/beagle/debian-rfs/usr/bin/id Binary files differnew file mode 100755 index 0000000..688f33a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/id diff --git a/beagle/debian-rfs/usr/bin/infocmp b/beagle/debian-rfs/usr/bin/infocmp Binary files differnew file mode 100755 index 0000000..7283425 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/infocmp diff --git a/beagle/debian-rfs/usr/bin/infotocap b/beagle/debian-rfs/usr/bin/infotocap new file mode 120000 index 0000000..4c747a3 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/infotocap @@ -0,0 +1 @@ +tic
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/install b/beagle/debian-rfs/usr/bin/install Binary files differnew file mode 100755 index 0000000..5b90aa1 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/install diff --git a/beagle/debian-rfs/usr/bin/ionice b/beagle/debian-rfs/usr/bin/ionice Binary files differnew file mode 100755 index 0000000..f2e9008 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ionice diff --git a/beagle/debian-rfs/usr/bin/ipcmk b/beagle/debian-rfs/usr/bin/ipcmk Binary files differnew file mode 100755 index 0000000..f66fb2a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ipcmk diff --git a/beagle/debian-rfs/usr/bin/ipcrm b/beagle/debian-rfs/usr/bin/ipcrm Binary files differnew file mode 100755 index 0000000..6cfe33f --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ipcrm diff --git a/beagle/debian-rfs/usr/bin/ipcs b/beagle/debian-rfs/usr/bin/ipcs Binary files differnew file mode 100755 index 0000000..769aaa7 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ipcs diff --git a/beagle/debian-rfs/usr/bin/join b/beagle/debian-rfs/usr/bin/join Binary files differnew file mode 100755 index 0000000..b866af5 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/join diff --git a/beagle/debian-rfs/usr/bin/last b/beagle/debian-rfs/usr/bin/last Binary files differnew file mode 100755 index 0000000..dd0d58b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/last diff --git a/beagle/debian-rfs/usr/bin/lastb b/beagle/debian-rfs/usr/bin/lastb new file mode 120000 index 0000000..1c1206e --- /dev/null +++ b/beagle/debian-rfs/usr/bin/lastb @@ -0,0 +1 @@ +last
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/lastlog b/beagle/debian-rfs/usr/bin/lastlog Binary files differnew file mode 100755 index 0000000..4cc986a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/lastlog diff --git a/beagle/debian-rfs/usr/bin/ldd b/beagle/debian-rfs/usr/bin/ldd new file mode 100755 index 0000000..186a8bd --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ldd @@ -0,0 +1,192 @@ +#! /bin/bash +# Copyright (C) 1996-2008, 2009 Free Software Foundation, Inc. +# This file is part of the GNU C Library. + +# The GNU C Library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. + +# The GNU C Library 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 +# Lesser General Public License for more details. + +# You should have received a copy of the GNU Lesser General Public +# License along with the GNU C Library; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + + +# This is the `ldd' command, which lists what shared libraries are +# used by given dynamically-linked executables. It works by invoking the +# run-time dynamic linker as a command and setting the environment +# variable LD_TRACE_LOADED_OBJECTS to a non-empty value. + +# We should be able to find the translation right at the beginning. +TEXTDOMAIN=libc +TEXTDOMAINDIR=/usr/share/locale + +RTLDLIST=/lib/ld-linux.so.3 +warn= +bind_now= +verbose= + +while test $# -gt 0; do + case "$1" in + --vers | --versi | --versio | --version) + echo 'ldd (Debian EGLIBC 2.11.2-10) 2.11.2' + printf $"Copyright (C) %s Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +" "2009" + printf $"Written by %s and %s. +" "Roland McGrath" "Ulrich Drepper" + exit 0 + ;; + --h | --he | --hel | --help) + printf $"Usage: ldd [OPTION]... FILE... + --help print this help and exit + --version print version information and exit + -d, --data-relocs process data relocations + -r, --function-relocs process data and function relocations + -u, --unused print unused direct dependencies + -v, --verbose print all information +" + printf $"For bug reporting instructions, please see: +%s. +" "<http://www.debian.org/Bugs/>" + exit 0 + ;; + -d | --d | --da | --dat | --data | --data- | --data-r | --data-re | \ + --data-rel | --data-relo | --data-reloc | --data-relocs) + warn=yes + shift + ;; + -r | --f | --fu | --fun | --func | --funct | --functi | --functio | \ + --function | --function- | --function-r | --function-re | --function-rel | \ + --function-relo | --function-reloc | --function-relocs) + warn=yes + bind_now=yes + shift + ;; + -v | --verb | --verbo | --verbos | --verbose) + verbose=yes + shift + ;; + -u | --u | --un | --unu | --unus | --unuse | --unused) + unused=yes + shift + ;; + --v | --ve | --ver) + echo >&2 $"ldd: option \`$1' is ambiguous" + exit 1 + ;; + --) # Stop option processing. + shift; break + ;; + -*) + echo >&2 'ldd:' $"unrecognized option" "\`$1'" + echo >&2 $"Try \`ldd --help' for more information." + exit 1 + ;; + *) + break + ;; + esac +done + +nonelf () +{ + # Maybe extra code for non-ELF binaries. + return 1; +} + +add_env="LD_TRACE_LOADED_OBJECTS=1 LD_WARN=$warn LD_BIND_NOW=$bind_now" +add_env="$add_env LD_VERBOSE=$verbose" +if test "$unused" = yes; then + add_env="$add_env LD_DEBUG=\"$LD_DEBUG${LD_DEBUG:+,}unused\"" +fi + +# The following use of cat is needed to make ldd work in SELinux +# environments where the executed program might not have permissions +# to write to the console/tty. But only bash 3.x supports the pipefail +# option, and we don't bother to handle the case for older bash versions. +if x=`set -o` && test "$x" != "${x#*pipefail}" && set -o pipefail ; then + try_trace() { + eval $add_env '"$@"' | cat + } +else + try_trace() { + eval $add_env '"$@"' + } +fi + +case $# in +0) + echo >&2 'ldd:' $"missing file arguments" + echo >&2 $"Try \`ldd --help' for more information." + exit 1 + ;; +1) + single_file=t + ;; +*) + single_file=f + ;; +esac + +result=0 +for file do + # We don't list the file name when there is only one. + test $single_file = t || echo "${file}:" + case $file in + */*) : + ;; + *) file=./$file + ;; + esac + if test ! -e "$file"; then + echo "ldd: ${file}:" $"No such file or directory" >&2 + result=1 + elif test ! -f "$file"; then + echo "ldd: ${file}:" $"not regular file" >&2 + result=1 + elif test -r "$file"; then + RTLD= + ret=1 + for rtld in ${RTLDLIST}; do + if test -x $rtld; then + verify_out=`${rtld} --verify "$file"` + ret=$? + case $ret in + [02]) RTLD=${rtld}; break;; + esac + fi + done + case $ret in + 0|2) + try_trace "$RTLD" "$file" || result=1 + ;; + 1|126) + # This can be a non-ELF binary or no binary at all. + nonelf "$file" || { + echo $" not a dynamic executable" + result=1 + } + ;; + *) + echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2 + exit 1 + ;; + esac + else + echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2 + result=1 + fi +done + +exit $result +# Local Variables: +# mode:ksh +# End: diff --git a/beagle/debian-rfs/usr/bin/line b/beagle/debian-rfs/usr/bin/line Binary files differnew file mode 100755 index 0000000..af28397 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/line diff --git a/beagle/debian-rfs/usr/bin/link b/beagle/debian-rfs/usr/bin/link Binary files differnew file mode 100755 index 0000000..7d9dda4 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/link diff --git a/beagle/debian-rfs/usr/bin/linux32 b/beagle/debian-rfs/usr/bin/linux32 new file mode 120000 index 0000000..da0d0cc --- /dev/null +++ b/beagle/debian-rfs/usr/bin/linux32 @@ -0,0 +1 @@ +setarch
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/linux64 b/beagle/debian-rfs/usr/bin/linux64 new file mode 120000 index 0000000..da0d0cc --- /dev/null +++ b/beagle/debian-rfs/usr/bin/linux64 @@ -0,0 +1 @@ +setarch
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/locale b/beagle/debian-rfs/usr/bin/locale Binary files differnew file mode 100755 index 0000000..2f3cba4 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/locale diff --git a/beagle/debian-rfs/usr/bin/localedef b/beagle/debian-rfs/usr/bin/localedef Binary files differnew file mode 100755 index 0000000..8874fb7 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/localedef diff --git a/beagle/debian-rfs/usr/bin/logger b/beagle/debian-rfs/usr/bin/logger Binary files differnew file mode 100755 index 0000000..fe06467 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/logger diff --git a/beagle/debian-rfs/usr/bin/logname b/beagle/debian-rfs/usr/bin/logname Binary files differnew file mode 100755 index 0000000..777e5dd --- /dev/null +++ b/beagle/debian-rfs/usr/bin/logname diff --git a/beagle/debian-rfs/usr/bin/lsattr b/beagle/debian-rfs/usr/bin/lsattr Binary files differnew file mode 100755 index 0000000..4705961 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/lsattr diff --git a/beagle/debian-rfs/usr/bin/lscpu b/beagle/debian-rfs/usr/bin/lscpu Binary files differnew file mode 100755 index 0000000..4ae0cf9 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/lscpu diff --git a/beagle/debian-rfs/usr/bin/lzmainfo b/beagle/debian-rfs/usr/bin/lzmainfo Binary files differnew file mode 100755 index 0000000..f163802 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/lzmainfo diff --git a/beagle/debian-rfs/usr/bin/mawk b/beagle/debian-rfs/usr/bin/mawk Binary files differnew file mode 100755 index 0000000..1fa2553 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/mawk diff --git a/beagle/debian-rfs/usr/bin/mcookie b/beagle/debian-rfs/usr/bin/mcookie Binary files differnew file mode 100755 index 0000000..124236a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/mcookie diff --git a/beagle/debian-rfs/usr/bin/md5sum b/beagle/debian-rfs/usr/bin/md5sum Binary files differnew file mode 100755 index 0000000..c7e2920 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/md5sum diff --git a/beagle/debian-rfs/usr/bin/md5sum.textutils b/beagle/debian-rfs/usr/bin/md5sum.textutils new file mode 120000 index 0000000..a620625 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/md5sum.textutils @@ -0,0 +1 @@ +md5sum
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/mesg b/beagle/debian-rfs/usr/bin/mesg Binary files differnew file mode 100755 index 0000000..2bd38bb --- /dev/null +++ b/beagle/debian-rfs/usr/bin/mesg diff --git a/beagle/debian-rfs/usr/bin/mkfifo b/beagle/debian-rfs/usr/bin/mkfifo Binary files differnew file mode 100755 index 0000000..4d80446 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/mkfifo diff --git a/beagle/debian-rfs/usr/bin/namei b/beagle/debian-rfs/usr/bin/namei Binary files differnew file mode 100755 index 0000000..65eaf7a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/namei diff --git a/beagle/debian-rfs/usr/bin/ncurses5-config b/beagle/debian-rfs/usr/bin/ncurses5-config new file mode 100755 index 0000000..265f516 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ncurses5-config @@ -0,0 +1,166 @@ +#!/bin/sh +# $Id: ncurses-config.in,v 1.24 2010/02/06 22:12:16 Miroslav.Lichvar Exp $ +############################################################################## +# Copyright (c) 2006-2009,2010 Free Software Foundation, Inc. # +# # +# Permission is hereby granted, free of charge, to any person obtaining a # +# copy of this software and associated documentation files (the "Software"), # +# to deal in the Software without restriction, including without limitation # +# the rights to use, copy, modify, merge, publish, distribute, distribute # +# with modifications, sublicense, and/or sell copies of the Software, and to # +# permit persons to whom the Software is furnished to do so, subject to the # +# following conditions: # +# # +# The above copyright notice and this permission notice shall be included in # +# all copies or substantial portions of the Software. # +# # +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # +# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # +# DEALINGS IN THE SOFTWARE. # +# # +# Except as contained in this notice, the name(s) of the above copyright # +# holders shall not be used in advertising or otherwise to promote the sale, # +# use or other dealings in this Software without prior written # +# authorization. # +############################################################################## +# +# Author: Thomas E. Dickey, 2006-on + +prefix="/usr" +exec_prefix="${prefix}" + +bindir="${exec_prefix}/bin" +includedir="${prefix}/include" +libdir="${exec_prefix}/lib" +datadir="${prefix}/share" +mandir="/usr/share/man" + +THIS="ncurses" +TINFO_LIB="ncurses" + +LANG=C; export LANG +LANGUAGE=C; export LANGUAGE +LC_ALL=C; export LC_ALL +LC_CTYPE=C; export LC_CTYPE + +# with --disable-overwrite, we installed into a subdirectory, but transformed +# the headers to include like this: +# <ncurses/curses.h> +if test xyes = xno ; then + case $includedir in + $prefix/include/ncurses) + includedir=`echo "$includedir" | sed -e 's,/[^/]*$,,'` + ;; + esac +fi + +test $# = 0 && exec /bin/sh $0 --error + +while test $# -gt 0; do + case "$1" in + # basic configuration + --prefix) + echo "$prefix" + ;; + --exec-prefix) + echo "$exec_prefix" + ;; + # compile/link + --cflags) + INCS= + if test "${includedir}" != /usr/include ; then + INCS="-I${includedir}" + fi + if test "xyes" = xno ; then + INCS="$INCS -I${includedir}/${THIS}" + fi + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + $INCS +ENDECHO + ;; + --libs) + if test ncurses = ncurses ; then + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + -L$libdir -l${THIS} +ENDECHO + else + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + -L$libdir -l${THIS} -l${TINFO_LIB} +ENDECHO + fi + ;; + # identification + --version) + echo "5.7.20100313" + ;; + --abi-version) + echo "5" + ;; + --mouse-version) + echo "1" + ;; + # locations + --bindir) + echo "${bindir}" + ;; + --datadir) + echo "${datadir}" + ;; + --includedir) + echo "${includedir}" + ;; + --libdir) + echo "${libdir}" + ;; + --mandir) + echo "${mandir}" + ;; + --terminfo) + echo "/usr/share/terminfo" + ;; + --terminfo-dirs) + echo "/etc/terminfo:/lib/terminfo:/usr/share/terminfo" + ;; + --termpath) + echo "" + ;; + # general info + --help) + cat <<ENDHELP +Usage: ${THIS}-config [options] + +Options: + --prefix echos the package-prefix of ${THIS} + --exec-prefix echos the executable-prefix of ${THIS} + + --cflags echos the C compiler flags needed to compile with ${THIS} + --libs echos the libraries needed to link with ${THIS} + + --version echos the release+patchdate version of ${THIS} + --abi-version echos the ABI version of ${THIS} + --mouse-version echos the mouse-interface version of ${THIS} + + --bindir echos the directory containing ${THIS} programs + --datadir echos the directory containing ${THIS} data + --includedir echos the directory containing ${THIS} header files + --libdir echos the directory containing ${THIS} libraries + --mandir echos the directory containing ${THIS} manpages + --terminfo echos the \$TERMINFO terminfo database path + --terminfo-dirs echos the \$TERMINFO_DIRS directory list + --termpath echos the \$TERMPATH termcap list + + --help prints this message +ENDHELP + ;; + --error|*) + /bin/sh $0 --help 1>&2 + exit 1 + ;; + esac + shift +done +# vile:shmode diff --git a/beagle/debian-rfs/usr/bin/ncursesw5-config b/beagle/debian-rfs/usr/bin/ncursesw5-config new file mode 100755 index 0000000..d7133c7 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ncursesw5-config @@ -0,0 +1,166 @@ +#!/bin/sh +# $Id: ncurses-config.in,v 1.24 2010/02/06 22:12:16 Miroslav.Lichvar Exp $ +############################################################################## +# Copyright (c) 2006-2009,2010 Free Software Foundation, Inc. # +# # +# Permission is hereby granted, free of charge, to any person obtaining a # +# copy of this software and associated documentation files (the "Software"), # +# to deal in the Software without restriction, including without limitation # +# the rights to use, copy, modify, merge, publish, distribute, distribute # +# with modifications, sublicense, and/or sell copies of the Software, and to # +# permit persons to whom the Software is furnished to do so, subject to the # +# following conditions: # +# # +# The above copyright notice and this permission notice shall be included in # +# all copies or substantial portions of the Software. # +# # +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # +# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # +# DEALINGS IN THE SOFTWARE. # +# # +# Except as contained in this notice, the name(s) of the above copyright # +# holders shall not be used in advertising or otherwise to promote the sale, # +# use or other dealings in this Software without prior written # +# authorization. # +############################################################################## +# +# Author: Thomas E. Dickey, 2006-on + +prefix="/usr" +exec_prefix="${prefix}" + +bindir="${exec_prefix}/bin" +includedir="${prefix}/include/ncursesw" +libdir="${exec_prefix}/lib" +datadir="${prefix}/share" +mandir="/usr/share/man" + +THIS="ncursesw" +TINFO_LIB="ncursesw" + +LANG=C; export LANG +LANGUAGE=C; export LANGUAGE +LC_ALL=C; export LC_ALL +LC_CTYPE=C; export LC_CTYPE + +# with --disable-overwrite, we installed into a subdirectory, but transformed +# the headers to include like this: +# <ncursesw/curses.h> +if test xno = xno ; then + case $includedir in + $prefix/include/ncursesw) + includedir=`echo "$includedir" | sed -e 's,/[^/]*$,,'` + ;; + esac +fi + +test $# = 0 && exec /bin/sh $0 --error + +while test $# -gt 0; do + case "$1" in + # basic configuration + --prefix) + echo "$prefix" + ;; + --exec-prefix) + echo "$exec_prefix" + ;; + # compile/link + --cflags) + INCS= + if test "${includedir}" != /usr/include ; then + INCS="-I${includedir}" + fi + if test "xno" = xno ; then + INCS="$INCS -I${includedir}/${THIS}" + fi + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + $INCS +ENDECHO + ;; + --libs) + if test ncurses = ncurses ; then + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + -L$libdir -l${THIS} +ENDECHO + else + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + -L$libdir -l${THIS} -l${TINFO_LIB} +ENDECHO + fi + ;; + # identification + --version) + echo "5.7.20100313" + ;; + --abi-version) + echo "5" + ;; + --mouse-version) + echo "1" + ;; + # locations + --bindir) + echo "${bindir}" + ;; + --datadir) + echo "${datadir}" + ;; + --includedir) + echo "${includedir}" + ;; + --libdir) + echo "${libdir}" + ;; + --mandir) + echo "${mandir}" + ;; + --terminfo) + echo "/usr/share/terminfo" + ;; + --terminfo-dirs) + echo "/etc/terminfo:/lib/terminfo:/usr/share/terminfo" + ;; + --termpath) + echo "" + ;; + # general info + --help) + cat <<ENDHELP +Usage: ${THIS}-config [options] + +Options: + --prefix echos the package-prefix of ${THIS} + --exec-prefix echos the executable-prefix of ${THIS} + + --cflags echos the C compiler flags needed to compile with ${THIS} + --libs echos the libraries needed to link with ${THIS} + + --version echos the release+patchdate version of ${THIS} + --abi-version echos the ABI version of ${THIS} + --mouse-version echos the mouse-interface version of ${THIS} + + --bindir echos the directory containing ${THIS} programs + --datadir echos the directory containing ${THIS} data + --includedir echos the directory containing ${THIS} header files + --libdir echos the directory containing ${THIS} libraries + --mandir echos the directory containing ${THIS} manpages + --terminfo echos the \$TERMINFO terminfo database path + --terminfo-dirs echos the \$TERMINFO_DIRS directory list + --termpath echos the \$TERMPATH termcap list + + --help prints this message +ENDHELP + ;; + --error|*) + /bin/sh $0 --help 1>&2 + exit 1 + ;; + esac + shift +done +# vile:shmode diff --git a/beagle/debian-rfs/usr/bin/newgrp b/beagle/debian-rfs/usr/bin/newgrp Binary files differnew file mode 100755 index 0000000..3e9236d --- /dev/null +++ b/beagle/debian-rfs/usr/bin/newgrp diff --git a/beagle/debian-rfs/usr/bin/nice b/beagle/debian-rfs/usr/bin/nice Binary files differnew file mode 100755 index 0000000..b7925c8 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/nice diff --git a/beagle/debian-rfs/usr/bin/nl b/beagle/debian-rfs/usr/bin/nl Binary files differnew file mode 100755 index 0000000..1809c64 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/nl diff --git a/beagle/debian-rfs/usr/bin/nohup b/beagle/debian-rfs/usr/bin/nohup Binary files differnew file mode 100755 index 0000000..ed6d135 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/nohup diff --git a/beagle/debian-rfs/usr/bin/nproc b/beagle/debian-rfs/usr/bin/nproc Binary files differnew file mode 100755 index 0000000..3ab1582 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/nproc diff --git a/beagle/debian-rfs/usr/bin/od b/beagle/debian-rfs/usr/bin/od Binary files differnew file mode 100755 index 0000000..ab0dd10 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/od diff --git a/beagle/debian-rfs/usr/bin/oldfind b/beagle/debian-rfs/usr/bin/oldfind Binary files differnew file mode 100755 index 0000000..7ed2698 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/oldfind diff --git a/beagle/debian-rfs/usr/bin/partx b/beagle/debian-rfs/usr/bin/partx Binary files differnew file mode 100755 index 0000000..123e003 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/partx diff --git a/beagle/debian-rfs/usr/bin/passwd b/beagle/debian-rfs/usr/bin/passwd Binary files differnew file mode 100755 index 0000000..826f09b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/passwd diff --git a/beagle/debian-rfs/usr/bin/paste b/beagle/debian-rfs/usr/bin/paste Binary files differnew file mode 100755 index 0000000..6e92731 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/paste diff --git a/beagle/debian-rfs/usr/bin/pathchk b/beagle/debian-rfs/usr/bin/pathchk Binary files differnew file mode 100755 index 0000000..6f2183c --- /dev/null +++ b/beagle/debian-rfs/usr/bin/pathchk diff --git a/beagle/debian-rfs/usr/bin/perl b/beagle/debian-rfs/usr/bin/perl Binary files differnew file mode 100755 index 0000000..53b35df --- /dev/null +++ b/beagle/debian-rfs/usr/bin/perl diff --git a/beagle/debian-rfs/usr/bin/perl5.10.1 b/beagle/debian-rfs/usr/bin/perl5.10.1 Binary files differnew file mode 100755 index 0000000..53b35df --- /dev/null +++ b/beagle/debian-rfs/usr/bin/perl5.10.1 diff --git a/beagle/debian-rfs/usr/bin/pg b/beagle/debian-rfs/usr/bin/pg Binary files differnew file mode 100755 index 0000000..86ffc67 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/pg diff --git a/beagle/debian-rfs/usr/bin/pinky b/beagle/debian-rfs/usr/bin/pinky Binary files differnew file mode 100755 index 0000000..3320115 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/pinky diff --git a/beagle/debian-rfs/usr/bin/pr b/beagle/debian-rfs/usr/bin/pr Binary files differnew file mode 100755 index 0000000..943b887 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/pr diff --git a/beagle/debian-rfs/usr/bin/printenv b/beagle/debian-rfs/usr/bin/printenv Binary files differnew file mode 100755 index 0000000..2b1e4ca --- /dev/null +++ b/beagle/debian-rfs/usr/bin/printenv diff --git a/beagle/debian-rfs/usr/bin/printf b/beagle/debian-rfs/usr/bin/printf Binary files differnew file mode 100755 index 0000000..2da842c --- /dev/null +++ b/beagle/debian-rfs/usr/bin/printf diff --git a/beagle/debian-rfs/usr/bin/ptx b/beagle/debian-rfs/usr/bin/ptx Binary files differnew file mode 100755 index 0000000..e431328 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/ptx diff --git a/beagle/debian-rfs/usr/bin/rename.ul b/beagle/debian-rfs/usr/bin/rename.ul Binary files differnew file mode 100755 index 0000000..7eb3c75 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/rename.ul diff --git a/beagle/debian-rfs/usr/bin/renice b/beagle/debian-rfs/usr/bin/renice Binary files differnew file mode 100755 index 0000000..2a1f2c6 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/renice diff --git a/beagle/debian-rfs/usr/bin/reset b/beagle/debian-rfs/usr/bin/reset new file mode 120000 index 0000000..73c1790 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/reset @@ -0,0 +1 @@ +tset
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/rev b/beagle/debian-rfs/usr/bin/rev Binary files differnew file mode 100755 index 0000000..5668ff0 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/rev diff --git a/beagle/debian-rfs/usr/bin/rgrep b/beagle/debian-rfs/usr/bin/rgrep new file mode 100755 index 0000000..2edbcd4 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/rgrep @@ -0,0 +1,4 @@ +#!/bin/sh + +exec grep -r "$@" + diff --git a/beagle/debian-rfs/usr/bin/rpcinfo b/beagle/debian-rfs/usr/bin/rpcinfo Binary files differnew file mode 100755 index 0000000..98148fd --- /dev/null +++ b/beagle/debian-rfs/usr/bin/rpcinfo diff --git a/beagle/debian-rfs/usr/bin/runcon b/beagle/debian-rfs/usr/bin/runcon Binary files differnew file mode 100755 index 0000000..ea45516 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/runcon diff --git a/beagle/debian-rfs/usr/bin/savelog b/beagle/debian-rfs/usr/bin/savelog new file mode 100755 index 0000000..1a0f305 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/savelog @@ -0,0 +1,354 @@ +#! /bin/sh +# savelog - save a log file +# Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll +# Copyright (C) 1992 Ronald S. Karr +# Slight modifications by Ian A. Murdock <imurdock@gnu.ai.mit.edu>: +# * uses `gzip' rather than `compress' +# * doesn't use $savedir; keeps saved log files in the same directory +# * reports successful rotation of log files +# * for the sake of consistency, files are rotated even if they are +# empty +# More modifications by Guy Maor <maor@debian.org>: +# * cleanup. +# * -p (preserve) option +# +# usage: savelog [-m mode] [-u user] [-g group] [-t] [-p] [-c cycle] +# [-j] [-C] [-d] [-l] [-r rolldir] [-n] [-q] file... +# -m mode - chmod log files to mode +# -u user - chown log files to user +# -g group - chgrp log files to group +# -c cycle - save cycle versions of the logfile (default: 7) +# -r rolldir- use rolldir instead of . to roll files +# -C - force cleanup of cycled logfiles +# -d - use standard date for rolling +# -D - override date format for -d +# -t - touch file +# -l - don't compress any log files (default: compress) +# -p - preserve mode/user/group of original file +# -j - use bzip2 instead of gzip +# -J - use xz instead of gzip +# -1 .. -9 - compression strength or memory usage (default: 9, except for xz) +# -x script - invoke script with rotated log file in $FILE +# -n - do not rotate empty files +# -q - be quiet +# file - log file names +# +# The savelog command saves and optionally compresses old copies of files. +# Older version of 'file' are named: +# +# 'file'.<number><compress_suffix> +# +# where <number> is the version number, 0 being the newest. By default, +# version numbers > 0 are compressed (unless -l prevents it). The +# version number 0 is never compressed on the off chance that a process +# still has 'file' opened for I/O. +# +# if the '-d' option is specified, <number> will be YYMMDDhhmmss +# +# If the 'file' does not exist and -t was given, it will be created. +# +# For files that do exist and have lengths greater than zero, the following +# actions are performed. +# +# 1) Version numered files are cycled. That is version 6 is moved to +# version 7, version is moved to becomes version 6, ... and finally +# version 0 is moved to version 1. Both compressed names and +# uncompressed names are cycled, regardless of -t. Missing version +# files are ignored. +# +# 2) The new file.1 is compressed and is changed subject to +# the -m, -u and -g flags. This step is skipped if the -t flag +# was given. +# +# 3) The main file is moved to file.0. +# +# 4) If the -m, -u, -g, -t, or -p flags are given, then the file is +# touched into existence subject to the given flags. The -p flag +# will preserve the original owner, group, and permissions. +# +# 5) The new file.0 is changed subject to the -m, -u and -g flags. +# +# Note: If no -m, -u, -g, -t, or -p is given, then the primary log file is +# not created. +# +# Note: Since the version numbers start with 0, version number <cycle> +# is never formed. The <cycle> count must be at least 2. +# +# Bugs: If a process is still writing to the file.0 and savelog +# moved it to file.1 and compresses it, data could be lost. +# Smail does not have this problem in general because it +# restats files often. + +# common location +export PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin +COMPRESS="gzip" +COMPRESS_OPTS="-f" +COMPRESS_STRENGTH_DEF="-9"; +DOT_Z=".gz" +DATUM=`date +%Y%m%d%H%M%S` + +# parse args +exitcode=0 # no problems to far +prog=`basename $0` +mode= +user= +group= +touch= +forceclean= +rolldir= +datum= +preserve= +hookscript= +quiet=0 +rotateifempty=yes +count=7 + +usage() +{ + echo "Usage: $prog [-m mode] [-u user] [-g group] [-t] [-c cycle] [-p]" + echo " [-j] [-C] [-d] [-l] [-r rolldir] [-n] [-q] file ..." + echo " -m mode - chmod log files to mode" + echo " -u user - chown log files to user" + echo " -g group - chgrp log files to group" + echo " -c cycle - save cycle versions of the logfile (default: 7)" + echo " -r rolldir - use rolldir instead of . to roll files" + echo " -C - force cleanup of cycled logfiles" + echo " -d - use standard date for rolling" + echo " -D - override date format for -d" + echo " -t - touch file" + echo " -l - don't compress any log files (default: compress)" + echo " -p - preserve mode/user/group of original file" + echo " -j - use bzip2 instead of gzip" + echo " -J - use xz instead of gzip" + echo " -1 .. -9 - compression strength or memory usage (default: 9, except for xz)" + echo " -x script - invoke script with rotated log file in \$FILE" + echo " -n - do not rotate empty files" + echo " -q - suppress rotation message" + echo " file - log file names" +} + + +fixfile() +{ + if [ -n "$user" ]; then + chown -- "$user" "$1" + fi + if [ -n "$group" ]; then + chgrp -- "$group" "$1" + fi + if [ -n "$mode" ]; then + chmod -- "$mode" "$1" + fi +} + + +while getopts m:u:g:c:r:CdD:tlphjJ123456789x:nq opt ; do + case "$opt" in + m) mode="$OPTARG" ;; + u) user="$OPTARG" ;; + g) group="$OPTARG" ;; + c) count="$OPTARG" ;; + r) rolldir="$OPTARG" ;; + C) forceclean=1 ;; + d) datum=1 ;; + D) DATUM=$(date +$OPTARG) ;; + t) touch=1 ;; + j) COMPRESS="bzip2"; COMPRESS_OPTS="-f"; COMPRESS_STRENGTH_DEF="-9"; DOT_Z=".bz2" ;; + J) COMPRESS="xz"; COMPRESS_OPTS="-f"; COMPRESS_STRENGTH_DEF=""; DOT_Z=".xz" ;; + [1-9]) COMPRESS_STRENGTH="-$opt" ;; + x) hookscript="$OPTARG" ;; + l) COMPRESS="" ;; + p) preserve=1 ;; + n) rotateifempty="no" ;; + q) quiet=1 ;; + h) usage; exit 0 ;; + *) usage; exit 1 ;; + esac +done + +shift $(($OPTIND - 1)) + +if [ "$count" -lt 2 ]; then + echo "$prog: count must be at least 2" 1>&2 + exit 2 +fi + +if [ -n "$COMPRESS" ] && [ -z "`which $COMPRESS`" ]; then + echo "$prog: Compression binary not available, please make sure '$COMPRESS' is installed" 1>&2 + exit 2 +fi + +if [ -n "$COMPRESS_STRENGTH" ]; then + COMPRESS_OPTS="$COMPRESS_OPTS $COMPRESS_STRENGTH" +else + COMPRESS_OPTS="$COMPRESS_OPTS $COMPRESS_STRENGTH_DEF" +fi + +# cycle thru filenames +while [ $# -gt 0 ]; do + + # get the filename + filename="$1" + shift + + # catch bogus files + if [ -e "$filename" ] && [ ! -f "$filename" ]; then + echo "$prog: $filename is not a regular file" 1>&2 + exitcode=3 + continue + fi + + # if file does not exist or is empty, and we've been told to not rotate + # empty files, create if requested and skip to the next file. + if [ ! -s "$filename" ] && [ "$rotateifempty" = "no" ]; then + # if -t was given and it does not exist, create it + if test -n "$touch" && [ ! -f "$filename" ]; then + touch -- "$filename" + if [ "$?" -ne 0 ]; then + echo "$prog: could not touch $filename" 1>&2 + exitcode=4 + continue + fi + fixfile "$filename" + fi + continue + # otherwise if the file does not exist and we've been told to rotate it + # anyway, create an empty file to rotate. + elif [ ! -e "$filename" ]; then + touch -- "$filename" + if [ "$?" -ne 0 ]; then + echo "$prog: could not touch $filename" 1>&2 + exitcode=4 + continue + fi + fixfile "$filename" + fi + + # be sure that the savedir exists and is writable + # (Debian default: $savedir is . and not ./OLD) + savedir=`dirname -- "$filename"` + if [ -z "$savedir" ]; then + savedir=. + fi + case "$rolldir" in + (/*) + savedir="$rolldir" + ;; + (*) + savedir="$savedir/$rolldir" + ;; + esac + if [ ! -d "$savedir" ]; then + mkdir -p -- "$savedir" + if [ "$?" -ne 0 ]; then + echo "$prog: could not mkdir $savedir" 1>&2 + exitcode=5 + continue + fi + chmod 0755 -- "$savedir" + fi + if [ ! -w "$savedir" ]; then + echo "$prog: directory $savedir is not writable" 1>&2 + exitcode=7 + continue + fi + + # determine our uncompressed file names + newname=`basename -- "$filename"` + newname="$savedir/$newname" + + # cycle the old compressed log files + cycle=$(( $count - 1)) + rm -f -- "$newname.$cycle" "$newname.$cycle$DOT_Z" + while [ $cycle -gt 1 ]; do + # --cycle + oldcycle=$cycle + cycle=$(( $cycle - 1 )) + # cycle log + if [ -f "$newname.$cycle$DOT_Z" ]; then + mv -f -- "$newname.$cycle$DOT_Z" \ + "$newname.$oldcycle$DOT_Z" + fi + if [ -f "$newname.$cycle" ]; then + # file was not compressed. move it anyway + mv -f -- "$newname.$cycle" "$newname.$oldcycle" + fi + done + + # compress the old uncompressed log if needed + if [ -f "$newname.0" ]; then + if [ -z "$COMPRESS" ]; then + newfile="$newname.1" + mv -- "$newname.0" "$newfile" + else + newfile="$newname.1$DOT_Z" +# $COMPRESS $COMPRESS_OPTS < $newname.0 > $newfile +# rm -f $newname.0 + $COMPRESS $COMPRESS_OPTS "$newname.0" + mv -- "$newname.0$DOT_Z" "$newfile" + fi + fixfile "$newfile" + fi + + # compress the old uncompressed log if needed + if test -n "$datum" && test -n "$COMPRESS"; then + $COMPRESS $COMPRESS_OPTS -- "$newname".[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] + fi + + # remove old files if so desired + if [ -n "$forceclean" ]; then + cycle=$(( $count - 1)) + if [ -z "$COMPRESS" ]; then + rm -f -- `ls -t -- $newname.[0-9]* | sed -e 1,${cycle}d` + else + rm -f -- `ls -t -- $newname.[0-9]*$DOT_Z | sed -e 1,${cycle}d` + fi + fi + + # create new file if needed + if [ -n "$preserve" ]; then + (umask 077 + touch -- "$filename.new" + chown --reference="$filename" -- "$filename.new" + chmod --reference="$filename" -- "$filename.new") + filenew=1 + elif [ -n "$touch$user$group$mode" ]; then + touch -- "$filename.new" + fixfile "$filename.new" + filenew=1 + fi + + newfilename="$newname.0" + # link the file into the file.0 holding place + if [ -f "$filename" ]; then + if [ -n "$filenew" ]; then + if ln -f -- "$filename" "$newfilename"; then + mv -- "$filename.new" "$filename" + else + echo "Error hardlinking $filename to $newfilename" >&2 + exitcode=8 + continue + fi + else + mv -- "$filename" "$newfilename" + fi + fi + [ ! -f "$newfilename" ] && touch -- "$newfilename" + fixfile "$newfilename" + if [ -n "$datum" ]; then + mv -- "$newfilename" "$newname.$DATUM" + newfilename="$newname.$DATUM" + fi + + if [ -n "$hookscript" ]; then + FILE="$newfilename" $SHELL -c "$hookscript" || \ + { + ret=$? + test "$quiet" -eq 1 || echo "Hook script failed with exit code $ret." 1>&2 + } + fi + + # report successful rotation + test "$quiet" -eq 1 || echo "Rotated \`$filename' at `date`." +done +exit $exitcode diff --git a/beagle/debian-rfs/usr/bin/script b/beagle/debian-rfs/usr/bin/script Binary files differnew file mode 100755 index 0000000..a86e644 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/script diff --git a/beagle/debian-rfs/usr/bin/scriptreplay b/beagle/debian-rfs/usr/bin/scriptreplay Binary files differnew file mode 100755 index 0000000..abf1295 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/scriptreplay diff --git a/beagle/debian-rfs/usr/bin/sdiff b/beagle/debian-rfs/usr/bin/sdiff Binary files differnew file mode 100755 index 0000000..9b645e7 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sdiff diff --git a/beagle/debian-rfs/usr/bin/sensible-browser b/beagle/debian-rfs/usr/bin/sensible-browser new file mode 100755 index 0000000..bf80f29 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sensible-browser @@ -0,0 +1,50 @@ +#!/bin/sh + +URL="$1" + +if test -n "$BROWSER"; then + OLDIFS="$IFS" + IFS=: + for i in $BROWSER; do + case "$i" in + (*sensible-browser*) + printf 'Using sensible-browser in $BROWSER makes no sense.\n' >&2 + exit 1 + ;; + (*%s*) + : + ;; + (*) + i="$i %s" + ;; + esac + IFS="$OLDIFS" + cmd=$(printf "$i\n" "$URL") + $cmd && exit 0 + done + printf 'None of the browsers in $BROWSER worked!\n' >&2 + exit 1 +fi + +if test -n "$DISPLAY"; then + if test -n "$GNOME_DESKTOP_SESSION_ID"; then + if test -x /usr/bin/gnome-www-browser; then + exec /usr/bin/gnome-www-browser ${URL:+"$URL"} + elif test -x /usr/bin/x-www-browser; then + exec /usr/bin/x-www-browser ${URL:+"$URL"} + elif test -x /usr/bin/gnome-terminal && test -x /usr/bin/www-browser; then + exec /usr/bin/gnome-terminal -e "/usr/bin/www-browser ${URL:+\"$URL\"}" + fi + fi + if test -x /usr/bin/x-www-browser; then + exec /usr/bin/x-www-browser ${URL:+"$URL"} + elif test -x /usr/bin/x-terminal-emulator && test -x /usr/bin/www-browser; then + exec /usr/bin/x-terminal-emulator -e /usr/bin/www-browser ${URL:+"$URL"} + fi +elif test -x /usr/bin/www-browser; then + exec /usr/bin/www-browser ${URL:+"$URL"} +fi + +printf "Couldn't find a suitable web browser!\n" >&2 +printf "Set the BROWSER environment variable to your desired browser.\n" >&2 +exit 1; diff --git a/beagle/debian-rfs/usr/bin/sensible-editor b/beagle/debian-rfs/usr/bin/sensible-editor new file mode 100755 index 0000000..8e4c9e4 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sensible-editor @@ -0,0 +1,32 @@ +#!/bin/sh + +ret="$?" + +if [ -n "$VISUAL" ]; then + ${VISUAL} "$@" + ret="$?" + if [ "$ret" -ne 126 ] && [ "$ret" -ne 127 ]; then + exit "$ret" + fi +fi + +${EDITOR:-editor} "$@" +ret="$?" +if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then + nano "$@" + ret="$?" + if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then + nano-tiny "$@" + ret="$?" + if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then + vi "$@" + ret="$?" + if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then + echo "Couldn't find an editor!" 1>&2 + echo "Set the \$EDITOR environment variable to your desired editor." 1>&2 + exit 1 + fi + fi + fi +fi +exit "$ret" diff --git a/beagle/debian-rfs/usr/bin/sensible-pager b/beagle/debian-rfs/usr/bin/sensible-pager new file mode 100755 index 0000000..af6d462 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sensible-pager @@ -0,0 +1,13 @@ +#!/bin/sh + +${PAGER:-pager} "$@" +ret="$?" +if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then +more "$@" +ret="$?" + if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then + echo "Couldn't find a pager!" 1>&2 + echo "Set the \$PAGER environment variable to your desired pager." 1>&2 + exit 1 + fi +fi diff --git a/beagle/debian-rfs/usr/bin/seq b/beagle/debian-rfs/usr/bin/seq Binary files differnew file mode 100755 index 0000000..376d268 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/seq diff --git a/beagle/debian-rfs/usr/bin/setarch b/beagle/debian-rfs/usr/bin/setarch Binary files differnew file mode 100755 index 0000000..65a96b4 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/setarch diff --git a/beagle/debian-rfs/usr/bin/setsid b/beagle/debian-rfs/usr/bin/setsid Binary files differnew file mode 100755 index 0000000..3d8b8cf --- /dev/null +++ b/beagle/debian-rfs/usr/bin/setsid diff --git a/beagle/debian-rfs/usr/bin/setterm b/beagle/debian-rfs/usr/bin/setterm Binary files differnew file mode 100755 index 0000000..8e6bbf9 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/setterm diff --git a/beagle/debian-rfs/usr/bin/sg b/beagle/debian-rfs/usr/bin/sg new file mode 120000 index 0000000..7510390 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sg @@ -0,0 +1 @@ +newgrp
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/sha1sum b/beagle/debian-rfs/usr/bin/sha1sum Binary files differnew file mode 100755 index 0000000..fbe8220 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sha1sum diff --git a/beagle/debian-rfs/usr/bin/sha224sum b/beagle/debian-rfs/usr/bin/sha224sum Binary files differnew file mode 100755 index 0000000..177a11d --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sha224sum diff --git a/beagle/debian-rfs/usr/bin/sha256sum b/beagle/debian-rfs/usr/bin/sha256sum Binary files differnew file mode 100755 index 0000000..8596524 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sha256sum diff --git a/beagle/debian-rfs/usr/bin/sha384sum b/beagle/debian-rfs/usr/bin/sha384sum Binary files differnew file mode 100755 index 0000000..6426b01 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sha384sum diff --git a/beagle/debian-rfs/usr/bin/sha512sum b/beagle/debian-rfs/usr/bin/sha512sum Binary files differnew file mode 100755 index 0000000..9717df2 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sha512sum diff --git a/beagle/debian-rfs/usr/bin/shred b/beagle/debian-rfs/usr/bin/shred Binary files differnew file mode 100755 index 0000000..cb6679b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/shred diff --git a/beagle/debian-rfs/usr/bin/shuf b/beagle/debian-rfs/usr/bin/shuf Binary files differnew file mode 100755 index 0000000..65e3893 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/shuf diff --git a/beagle/debian-rfs/usr/bin/sort b/beagle/debian-rfs/usr/bin/sort Binary files differnew file mode 100755 index 0000000..c11c260 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sort diff --git a/beagle/debian-rfs/usr/bin/split b/beagle/debian-rfs/usr/bin/split Binary files differnew file mode 100755 index 0000000..f97ac49 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/split diff --git a/beagle/debian-rfs/usr/bin/stat b/beagle/debian-rfs/usr/bin/stat Binary files differnew file mode 100755 index 0000000..92cf20d --- /dev/null +++ b/beagle/debian-rfs/usr/bin/stat diff --git a/beagle/debian-rfs/usr/bin/stdbuf b/beagle/debian-rfs/usr/bin/stdbuf Binary files differnew file mode 100755 index 0000000..a09a704 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/stdbuf diff --git a/beagle/debian-rfs/usr/bin/sum b/beagle/debian-rfs/usr/bin/sum Binary files differnew file mode 100755 index 0000000..8d1a425 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/sum diff --git a/beagle/debian-rfs/usr/bin/tabs b/beagle/debian-rfs/usr/bin/tabs Binary files differnew file mode 100755 index 0000000..c4df0d0 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tabs diff --git a/beagle/debian-rfs/usr/bin/tac b/beagle/debian-rfs/usr/bin/tac Binary files differnew file mode 100755 index 0000000..e956006 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tac diff --git a/beagle/debian-rfs/usr/bin/tail b/beagle/debian-rfs/usr/bin/tail Binary files differnew file mode 100755 index 0000000..11d14eb --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tail diff --git a/beagle/debian-rfs/usr/bin/taskset b/beagle/debian-rfs/usr/bin/taskset Binary files differnew file mode 100755 index 0000000..ea6b760 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/taskset diff --git a/beagle/debian-rfs/usr/bin/tee b/beagle/debian-rfs/usr/bin/tee Binary files differnew file mode 100755 index 0000000..19da0f9 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tee diff --git a/beagle/debian-rfs/usr/bin/test b/beagle/debian-rfs/usr/bin/test Binary files differnew file mode 100755 index 0000000..999ed9e --- /dev/null +++ b/beagle/debian-rfs/usr/bin/test diff --git a/beagle/debian-rfs/usr/bin/tic b/beagle/debian-rfs/usr/bin/tic Binary files differnew file mode 100755 index 0000000..b364890 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tic diff --git a/beagle/debian-rfs/usr/bin/timeout b/beagle/debian-rfs/usr/bin/timeout Binary files differnew file mode 100755 index 0000000..f6986a2 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/timeout diff --git a/beagle/debian-rfs/usr/bin/toe b/beagle/debian-rfs/usr/bin/toe Binary files differnew file mode 100755 index 0000000..c524f14 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/toe diff --git a/beagle/debian-rfs/usr/bin/touch b/beagle/debian-rfs/usr/bin/touch new file mode 120000 index 0000000..b22e934 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/touch @@ -0,0 +1 @@ +/bin/touch
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/tput b/beagle/debian-rfs/usr/bin/tput Binary files differnew file mode 100755 index 0000000..a00a9e7 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tput diff --git a/beagle/debian-rfs/usr/bin/tr b/beagle/debian-rfs/usr/bin/tr Binary files differnew file mode 100755 index 0000000..8c6c5eb --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tr diff --git a/beagle/debian-rfs/usr/bin/truncate b/beagle/debian-rfs/usr/bin/truncate Binary files differnew file mode 100755 index 0000000..739a25e --- /dev/null +++ b/beagle/debian-rfs/usr/bin/truncate diff --git a/beagle/debian-rfs/usr/bin/tset b/beagle/debian-rfs/usr/bin/tset Binary files differnew file mode 100755 index 0000000..a63247a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tset diff --git a/beagle/debian-rfs/usr/bin/tsort b/beagle/debian-rfs/usr/bin/tsort Binary files differnew file mode 100755 index 0000000..a9a3fb9 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tsort diff --git a/beagle/debian-rfs/usr/bin/tty b/beagle/debian-rfs/usr/bin/tty Binary files differnew file mode 100755 index 0000000..7bd7cf1 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tty diff --git a/beagle/debian-rfs/usr/bin/tzselect b/beagle/debian-rfs/usr/bin/tzselect new file mode 100755 index 0000000..037e3ef --- /dev/null +++ b/beagle/debian-rfs/usr/bin/tzselect @@ -0,0 +1,326 @@ +#! /bin/bash + +VERSION='@(#)tzselect.ksh 8.2' +PKGVERSION='(Debian EGLIBC 2.11.2-10) ' +REPORT_BUGS_TO='<http://www.debian.org/Bugs/>' + +# Ask the user about the time zone, and output the resulting TZ value to stdout. +# Interact with the user via stderr and stdin. + +# Contributed by Paul Eggert. + +# Porting notes: +# +# This script requires several features of the Korn shell. +# If your host lacks the Korn shell, +# you can use either of the following free programs instead: +# +# <a href=ftp://ftp.gnu.org/pub/gnu/> +# Bourne-Again shell (bash) +# </a> +# +# <a href=ftp://ftp.cs.mun.ca/pub/pdksh/pdksh.tar.gz> +# Public domain ksh +# </a> +# +# This script also uses several features of modern awk programs. +# If your host lacks awk, or has an old awk that does not conform to Posix.2, +# you can use either of the following free programs instead: +# +# <a href=ftp://ftp.gnu.org/pub/gnu/> +# GNU awk (gawk) +# </a> +# +# <a href=ftp://ftp.whidbey.net/pub/brennan/> +# mawk +# </a> + + +# Specify default values for environment variables if they are unset. +: ${AWK=awk} +: ${TZDIR=/usr/share/zoneinfo} + +# Check for awk Posix compliance. +($AWK -v x=y 'BEGIN { exit 123 }') </dev/null >/dev/null 2>&1 +[ $? = 123 ] || { + echo >&2 "$0: Sorry, your \`$AWK' program is not Posix compatible." + exit 1 +} + +if [ "$1" = "--help" ]; then + cat <<EOF +Usage: tzselect +Select a time zone interactively. + +For bug reporting instructions, please see: +$REPORT_BUGS_TO. +EOF + exit 0 +elif [ "$1" = "--version" ]; then + cat <<EOF +tzselect $PKGVERSION$VERSION +EOF + exit 0 +fi + +# Make sure the tables are readable. +TZ_COUNTRY_TABLE=$TZDIR/iso3166.tab +TZ_ZONE_TABLE=$TZDIR/zone.tab +for f in $TZ_COUNTRY_TABLE $TZ_ZONE_TABLE +do + <$f || { + echo >&2 "$0: time zone files are not set up correctly" + exit 1 + } +done + +newline=' +' +IFS=$newline + + +# Work around a bug in bash 1.14.7 and earlier, where $PS3 is sent to stdout. +case $(echo 1 | (select x in x; do break; done) 2>/dev/null) in +?*) PS3= +esac + + +# Begin the main loop. We come back here if the user wants to retry. +while + + echo >&2 'Please identify a location' \ + 'so that time zone rules can be set correctly.' + + continent= + country= + region= + + + # Ask the user for continent or ocean. + + echo >&2 'Please select a continent or ocean.' + + select continent in \ + Africa \ + Americas \ + Antarctica \ + 'Arctic Ocean' \ + Asia \ + 'Atlantic Ocean' \ + Australia \ + Europe \ + 'Indian Ocean' \ + 'Pacific Ocean' \ + 'none - I want to specify the time zone using the Posix TZ format.' + do + case $continent in + '') + echo >&2 'Please enter a number in range.';; + ?*) + case $continent in + Americas) continent=America;; + *' '*) continent=$(expr "$continent" : '\([^ ]*\)') + esac + break + esac + done + case $continent in + '') + exit 1;; + none) + # Ask the user for a Posix TZ string. Check that it conforms. + while + echo >&2 'Please enter the desired value' \ + 'of the TZ environment variable.' + echo >&2 'For example, GST-10 is a zone named GST' \ + 'that is 10 hours ahead (east) of UTC.' + read TZ + $AWK -v TZ="$TZ" 'BEGIN { + tzname = "[^-+,0-9][^-+,0-9][^-+,0-9]+" + time = "[0-2]?[0-9](:[0-5][0-9](:[0-5][0-9])?)?" + offset = "[-+]?" time + date = "(J?[0-9]+|M[0-9]+\.[0-9]+\.[0-9]+)" + datetime = "," date "(/" time ")?" + tzpattern = "^(:.*|" tzname offset "(" tzname \ + "(" offset ")?(" datetime datetime ")?)?)$" + if (TZ ~ tzpattern) exit 1 + exit 0 + }' + do + echo >&2 "\`$TZ' is not a conforming" \ + 'Posix time zone string.' + done + TZ_for_date=$TZ;; + *) + # Get list of names of countries in the continent or ocean. + countries=$($AWK -F'\t' \ + -v continent="$continent" \ + -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ + ' + /^#/ { next } + $3 ~ ("^" continent "/") { + if (!cc_seen[$1]++) cc_list[++ccs] = $1 + } + END { + while (getline <TZ_COUNTRY_TABLE) { + if ($0 !~ /^#/) cc_name[$1] = $2 + } + for (i = 1; i <= ccs; i++) { + country = cc_list[i] + if (cc_name[country]) { + country = cc_name[country] + } + print country + } + } + ' <$TZ_ZONE_TABLE | sort -f) + + + # If there's more than one country, ask the user which one. + case $countries in + *"$newline"*) + echo >&2 'Please select a country.' + select country in $countries + do + case $country in + '') echo >&2 'Please enter a number in range.';; + ?*) break + esac + done + + case $country in + '') exit 1 + esac;; + *) + country=$countries + esac + + + # Get list of names of time zone rule regions in the country. + regions=$($AWK -F'\t' \ + -v country="$country" \ + -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ + ' + BEGIN { + cc = country + while (getline <TZ_COUNTRY_TABLE) { + if ($0 !~ /^#/ && country == $2) { + cc = $1 + break + } + } + } + $1 == cc { print $4 } + ' <$TZ_ZONE_TABLE) + + + # If there's more than one region, ask the user which one. + case $regions in + *"$newline"*) + echo >&2 'Please select one of the following' \ + 'time zone regions.' + select region in $regions + do + case $region in + '') echo >&2 'Please enter a number in range.';; + ?*) break + esac + done + case $region in + '') exit 1 + esac;; + *) + region=$regions + esac + + # Determine TZ from country and region. + TZ=$($AWK -F'\t' \ + -v country="$country" \ + -v region="$region" \ + -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ + ' + BEGIN { + cc = country + while (getline <TZ_COUNTRY_TABLE) { + if ($0 !~ /^#/ && country == $2) { + cc = $1 + break + } + } + } + $1 == cc && $4 == region { print $3 } + ' <$TZ_ZONE_TABLE) + + # Make sure the corresponding zoneinfo file exists. + TZ_for_date=$TZDIR/$TZ + <$TZ_for_date || { + echo >&2 "$0: time zone files are not set up correctly" + exit 1 + } + esac + + + # Use the proposed TZ to output the current date relative to UTC. + # Loop until they agree in seconds. + # Give up after 8 unsuccessful tries. + + extra_info= + for i in 1 2 3 4 5 6 7 8 + do + TZdate=$(LANG=C TZ="$TZ_for_date" date) + UTdate=$(LANG=C TZ=UTC0 date) + TZsec=$(expr "$TZdate" : '.*:\([0-5][0-9]\)') + UTsec=$(expr "$UTdate" : '.*:\([0-5][0-9]\)') + case $TZsec in + $UTsec) + extra_info=" +Local time is now: $TZdate. +Universal Time is now: $UTdate." + break + esac + done + + + # Output TZ info and ask the user to confirm. + + echo >&2 "" + echo >&2 "The following information has been given:" + echo >&2 "" + case $country+$region in + ?*+?*) echo >&2 " $country$newline $region";; + ?*+) echo >&2 " $country";; + +) echo >&2 " TZ='$TZ'" + esac + echo >&2 "" + echo >&2 "Therefore TZ='$TZ' will be used.$extra_info" + echo >&2 "Is the above information OK?" + + ok= + select ok in Yes No + do + case $ok in + '') echo >&2 'Please enter 1 for Yes, or 2 for No.';; + ?*) break + esac + done + case $ok in + '') exit 1;; + Yes) break + esac +do : +done + +case $SHELL in +*csh) file=.login line="setenv TZ '$TZ'";; +*) file=.profile line="TZ='$TZ'; export TZ" +esac + +echo >&2 " +You can make this change permanent for yourself by appending the line + $line +to the file '$file' in your home directory; then log out and log in again. + +Here is that TZ value again, this time on standard output so that you +can use the $0 command in shell scripts:" + +echo "$TZ" diff --git a/beagle/debian-rfs/usr/bin/unexpand b/beagle/debian-rfs/usr/bin/unexpand Binary files differnew file mode 100755 index 0000000..f07d3e1 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/unexpand diff --git a/beagle/debian-rfs/usr/bin/uniq b/beagle/debian-rfs/usr/bin/uniq Binary files differnew file mode 100755 index 0000000..cf508a6 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/uniq diff --git a/beagle/debian-rfs/usr/bin/unlink b/beagle/debian-rfs/usr/bin/unlink Binary files differnew file mode 100755 index 0000000..b98089b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/unlink diff --git a/beagle/debian-rfs/usr/bin/unshare b/beagle/debian-rfs/usr/bin/unshare Binary files differnew file mode 100755 index 0000000..f58a2a2 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/unshare diff --git a/beagle/debian-rfs/usr/bin/unxz b/beagle/debian-rfs/usr/bin/unxz new file mode 120000 index 0000000..a162c28 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/unxz @@ -0,0 +1 @@ +xz
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/update-alternatives b/beagle/debian-rfs/usr/bin/update-alternatives Binary files differnew file mode 100755 index 0000000..d459002 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/update-alternatives diff --git a/beagle/debian-rfs/usr/bin/users b/beagle/debian-rfs/usr/bin/users Binary files differnew file mode 100755 index 0000000..dc3286b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/users diff --git a/beagle/debian-rfs/usr/bin/wall b/beagle/debian-rfs/usr/bin/wall Binary files differnew file mode 100755 index 0000000..19353e5 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/wall diff --git a/beagle/debian-rfs/usr/bin/wc b/beagle/debian-rfs/usr/bin/wc Binary files differnew file mode 100755 index 0000000..e40083a --- /dev/null +++ b/beagle/debian-rfs/usr/bin/wc diff --git a/beagle/debian-rfs/usr/bin/whereis b/beagle/debian-rfs/usr/bin/whereis Binary files differnew file mode 100755 index 0000000..dd6c064 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/whereis diff --git a/beagle/debian-rfs/usr/bin/which b/beagle/debian-rfs/usr/bin/which new file mode 120000 index 0000000..21b1c17 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/which @@ -0,0 +1 @@ +/bin/which
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/who b/beagle/debian-rfs/usr/bin/who Binary files differnew file mode 100755 index 0000000..374bfa1 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/who diff --git a/beagle/debian-rfs/usr/bin/whoami b/beagle/debian-rfs/usr/bin/whoami Binary files differnew file mode 100755 index 0000000..be88209 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/whoami diff --git a/beagle/debian-rfs/usr/bin/xargs b/beagle/debian-rfs/usr/bin/xargs Binary files differnew file mode 100755 index 0000000..345852c --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xargs diff --git a/beagle/debian-rfs/usr/bin/xz b/beagle/debian-rfs/usr/bin/xz Binary files differnew file mode 100755 index 0000000..920148b --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xz diff --git a/beagle/debian-rfs/usr/bin/xzcat b/beagle/debian-rfs/usr/bin/xzcat new file mode 120000 index 0000000..a162c28 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xzcat @@ -0,0 +1 @@ +xz
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/xzcmp b/beagle/debian-rfs/usr/bin/xzcmp new file mode 120000 index 0000000..b0db3ab --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xzcmp @@ -0,0 +1 @@ +xzdiff
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/xzdiff b/beagle/debian-rfs/usr/bin/xzdiff new file mode 100755 index 0000000..0e2b1b7 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xzdiff @@ -0,0 +1,172 @@ +#!/bin/bash + +# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# Modified for XZ Utils by Andrew Dudman and Lasse Collin. + +# 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. + +#SET_PATH - This line is a placeholder to ease patching this script. + +# Instead of unsetting XZ_OPT, just make sure that xz will use file format +# autodetection. This way memory usage limit and thread limit can be +# specified via XZ_OPT. With gzip and bzip2 it's OK to just unset the +# environment variables. +xz='xz --format=auto' +unset GZIP BZIP BZIP2 + +case ${0##*/} in + *cmp*) prog=xzcmp; cmp=${CMP:-cmp};; + *) prog=xzdiff; cmp=${DIFF:-diff};; +esac + +version="$prog (XZ Utils) 5.0.0" + +usage="Usage: ${0##*/} [OPTION]... FILE1 [FILE2] +Compare FILE1 to FILE2, using their uncompressed contents if they are +compressed. If FILE2 is omitted, then the files compared are FILE1 and +FILE1 from which the compression format suffix has been stripped. + +Do comparisons like '$cmp' does. OPTIONs are the same as for '$cmp'. + +Report bugs to <lasse.collin@tukaani.org>." + +# sed script to escape all ' for the shell, and then (to handle trailing +# newlines correctly) turn trailing X on last line into '. +escape=' + s/'\''/'\''\\'\'''\''/g + $s/X$/'\''/ +' + +while :; do + case $1 in + --h*) printf '%s\n' "$usage" || exit 2; exit;; + --v*) echo "$version" || exit 2; exit;; + --) shift; break;; + -*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;; + -?*) cmp="$cmp '$1'";; + *) break;; + esac + shift +done +cmp="$cmp --" + +for file; do + test "X$file" = X- || <"$file" || exit 2 +done + +xz1=$xz +xz2=$xz +xz_status=0 +exec 3>&1 + +if test $# -eq 1; then + case $1 in + *[-.]xz | *[-.]lzma | *.t[lx]z) + ;; + *[-.]bz2 | *.tbz | *.tbz2) + xz1=$bzip2;; + *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) + xz1=$gzip;; + *) + echo >&2 "$0: $1: Unknown compressed file name suffix" + exit 2;; + esac + case $1 in + *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma) + FILE=`expr "X$1" : 'X\(.*\)[-.][abglmxzZ2]*$'`;; + *.t[abglx]z) + FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;; + *.tbz2) + FILE=`expr "X$1" : 'X\(.*[-.]t\)bz2$'`ar;; + esac + xz_status=$( + exec 4>&1 + ($xz1 -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3 + ) +elif test $# -eq 2; then + case $1 in + *[-.]bz2 | *.tbz | *.tbz2) xz1=$bzip2;; + *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz1=$gzip;; + esac + case $2 in + *[-.]bz2 | *.tbz | *.tbz2) xz2=$bzip2;; + *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz2=$gzip;; + esac + case $1 in + *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *.t[abglx]z | *.tbz2 | -) + case "$2" in + *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *.t[abglx]z | *.tbz2 | -) + if test "$1$2" = --; then + xz_status=$( + exec 4>&1 + ($xz1 -cdfq - 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - - >&3 + ) + elif # Reject Solaris 8's buggy /bin/bash 2.03. + echo X | (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) 5<&0; then + xz_status=$( + exec 4>&1 + ($xz1 -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- | + ( ($xz2 -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null | + eval "$cmp" /dev/fd/5 - >&3) 5<&0 + ) + case $xz_status in + *[1-9]*) xz_status=1;; + *) xz_status=0;; + esac + else + F=`expr "/$2" : '.*/\(.*\)[-.][ablmtxz2]*$'` || F=$prog + tmp= + trap ' + test -n "$tmp" && rm -f "$tmp" + (exit 2); exit 2 + ' HUP INT PIPE TERM 0 + tmp=`mktemp -t -- "$F.XXXXXX"` || exit 2 + $xz2 -cdfq -- "$2" > "$tmp" || exit 2 + xz_status=$( + exec 4>&1 + ($xz1 -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - '"$tmp"' >&3 + ) + cmp_status=$? + rm -f "$tmp" || xz_status=$? + trap - HUP INT PIPE TERM 0 + (exit $cmp_status) + fi;; + *) + xz_status=$( + exec 4>&1 + ($xz1 -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" - '"$2"' >&3 + );; + esac;; + *) + case "$2" in + *[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *.t[abglx]z | *.tbz2 | -) + xz_status=$( + exec 4>&1 + ($xz2 -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- | + eval "$cmp" '"$1"' - >&3 + );; + *) + eval "$cmp" '"$1"' '"$2"';; + esac;; + esac +else + echo >&2 "$0: Invalid number of operands; try \`${0##*/} --help' for help" + exit 2 +fi + +cmp_status=$? +test "$xz_status" -eq 0 || exit 2 +exit $cmp_status diff --git a/beagle/debian-rfs/usr/bin/xzegrep b/beagle/debian-rfs/usr/bin/xzegrep new file mode 120000 index 0000000..b79a453 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xzegrep @@ -0,0 +1 @@ +xzgrep
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/xzfgrep b/beagle/debian-rfs/usr/bin/xzfgrep new file mode 120000 index 0000000..b79a453 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xzfgrep @@ -0,0 +1 @@ +xzgrep
\ No newline at end of file diff --git a/beagle/debian-rfs/usr/bin/xzgrep b/beagle/debian-rfs/usr/bin/xzgrep new file mode 100755 index 0000000..44dd484 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xzgrep @@ -0,0 +1,196 @@ +#!/bin/bash + +# xzgrep -- a wrapper around a grep program that decompresses files as needed +# Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca> + +# Copyright (C) 1998, 2001, 2002, 2006, 2007 Free Software Foundation +# Copyright (C) 1993 Jean-loup Gailly + +# Modified for XZ Utils by Andrew Dudman and Lasse Collin. + +# 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. + +#SET_PATH - This line is a placeholder to ease patching this script. + +# Instead of unsetting XZ_OPT, just make sure that xz will use file format +# autodetection. This way memory usage limit and thread limit can be +# specified via XZ_OPT. With gzip and bzip2 it's OK to just unset the +# environment variables. +xz='xz --format=auto' +unset GZIP BZIP BZIP2 + +case ${0##/*} in + *egrep*) prog=xzegrep; grep=${GREP:-egrep};; + *fgrep*) prog=xzfgrep; grep=${GREP:-fgrep};; + *) prog=xzgrep; grep=${GREP:-grep};; +esac + +version="$prog (XZ Utils) 5.0.0" + +usage="Usage: ${0##/*} [OPTION]... [-e] PATTERN [FILE]... +Look for instances of PATTERN in the input FILEs, using their +uncompressed contents if they are compressed. + +OPTIONs are the same as for '$grep'. + +Report bugs to <lasse.collin@tukaani.org>." + +# sed script to escape all ' for the shell, and then (to handle trailing +# newlines correctly) turn trailing X on last line into '. +escape=' + s/'\''/'\''\\'\'''\''/g + $s/X$/'\''/ +' +operands= +have_pat=0 +files_with_matches=0 +files_without_matches=0 +no_filename=0 +with_filename=0 + +while test $# -ne 0; do + option=$1 + shift + optarg= + + case $option in + (-[0123456789abcdhHiIKLlnoqrRsTuUvVwxyzZ]?*) + arg2=-\'$(expr "X${option}X" : 'X-.[0-9]*\(.*\)' | sed "$escape") + eval "set -- $arg2 "'${1+"$@"}' + option=$(expr "X$option" : 'X\(-.[0-9]*\)');; + (--binary-*=* | --[lm]a*=* | --reg*=*) + ;; + (-[ABCDefm] | --binary-* | --file | --[lm]a* | --reg*) + case ${1?"$option option requires an argument"} in + (*\'*) + optarg=" '"$(printf '%sX\n' "$1" | sed "$escape");; + (*) + optarg=" '$1'";; + esac + shift;; + (--) + break;; + (-?*) + ;; + (*) + case $option in + (*\'*) + operands="$operands '"$(printf '%sX\n' "$option" | sed "$escape");; + (*) + operands="$operands '$option'";; + esac + ${POSIXLY_CORRECT+break} + continue;; + esac + + case $option in + (-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*) + printf >&2 '%s: %s: Option not supported\n' "$0" "$option" + exit 2;; + (-[ef]* | --file | --file=* | --reg*) + have_pat=1;; + (--h | --he | --hel | --help) + echo "$usage" || exit 2 + exit;; + (-H | --wi | --wit | --with | --with- | --with-f | --with-fi \ + | --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \ + | --with-filename) + with_filename=1 + continue;; + (-l | --files-with-*) + files_with_matches=1;; + (-L | --files-witho*) + files_without_matches=1;; + (--no-f*) + no_filename=1;; + (-V | --v | --ve | --ver | --vers | --versi | --versio | --version) + echo "$version" || exit 2 + exit;; + esac + + case $option in + (*\'?*) + option=\'$(expr "X${option}X" : 'X\(.*\)' | sed "$escape");; + (*) + option="'$option'";; + esac + + grep="$grep $option$optarg" +done + +eval "set -- $operands "'${1+"$@"}' + +if test $have_pat -eq 0; then + case ${1?"Missing pattern; try \`${0##*/} --help' for help"} in + (*\'*) + grep="$grep -- '"$(printf '%sX\n' "$1" | sed "$escape");; + (*) + grep="$grep -- '$1'";; + esac + shift +fi + +if test $# -eq 0; then + set -- - +fi + +exec 3>&1 +res=0 + +for i; do + case $i in + *[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdfq";; + *[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdfq";; + *) uncompress="$xz -cdfq";; + esac + # Fail if xz or grep (or sed) fails. + xz_status=$( + exec 5>&1 + ($uncompress -- "$i" 5>&-; echo $? >&5) 3>&- | + if test $files_with_matches -eq 1; then + eval "$grep" -q && { printf '%s\n' "$i" || exit 2; } + elif test $files_without_matches -eq 1; then + eval "$grep" -q || { + r=$? + if test $r -eq 1; then + printf '%s\n' "$i" || r=2 + fi + exit $r + } + elif test $with_filename -eq 0 && + { test $# -eq 1 || test $no_filename -eq 1; }; then + eval "$grep" + else + case $i in + (*' +'* | *'&'* | *'\'* | *'|'*) + i=$(printf '%s\n' "$i" | + sed ' + $!N + $s/[&\|]/\\&/g + $s/\n/\\n/g + ');; + esac + sed_script="s|^|$i:|" + + # Fail if grep or sed fails. + r=$( + exec 4>&1 + (eval "$grep" 4>&-; echo $? >&4) 3>&- | sed "$sed_script" >&3 4>&- + ) || r=2 + exit $r + fi >&3 5>&- + ) + r=$? + test "$xz_status" -eq 0 || test "$xz_status" -eq 2 || r=2 + test $res -lt $r && res=$r +done +exit $res diff --git a/beagle/debian-rfs/usr/bin/xzless b/beagle/debian-rfs/usr/bin/xzless new file mode 100755 index 0000000..73eab7e --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xzless @@ -0,0 +1,58 @@ +#!/bin/bash + +# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation + +# The original version for gzip was written by Paul Eggert. +# Modified for XZ Utils by Andrew Dudman and Lasse Collin. + +# 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. + +#SET_PATH - This line is a placeholder to ease patching this script. + +# Instead of unsetting XZ_OPT, just make sure that xz will use file format +# autodetection. This way memory usage limit and thread limit can be +# specified via XZ_OPT. +xz='xz --format=auto' + +version='xzless (XZ Utils) 5.0.0' + +usage="Usage: ${0##*/} [OPTION]... [FILE]... +Like 'less', but operate on the uncompressed contents of xz compressed FILEs. + +Options are the same as for 'less'. + +Report bugs to <lasse.collin@tukaani.org>." + +case $1 in + --help) echo "$usage" || exit 2; exit;; + --version) echo "$version" || exit 2; exit;; +esac + +if test "${LESSMETACHARS+set}" != set; then + # Work around a bug in less 394 and earlier; + # it mishandles the metacharacters '$%=~'. + space=' ' + tab=' ' + nl=' +' + LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~' +fi + +if test "$(less -V | { read ver && echo ${ver#less }; })" -ge 429; then + # less 429 or later: LESSOPEN pipe will be used on + # standard input if $LESSOPEN begins with |-. + LESSOPEN="|-$xz -cdfq -- %s" +else + LESSOPEN="|$xz -cdfq -- %s" +fi +export LESSMETACHARS LESSOPEN + +exec less "$@" diff --git a/beagle/debian-rfs/usr/bin/xzmore b/beagle/debian-rfs/usr/bin/xzmore new file mode 100755 index 0000000..3148cbd --- /dev/null +++ b/beagle/debian-rfs/usr/bin/xzmore @@ -0,0 +1,78 @@ +#!/bin/bash + +# Copyright (C) 2001, 2002, 2007 Free Software Foundation +# Copyright (C) 1992, 1993 Jean-loup Gailly + +# Modified for XZ Utils by Andrew Dudman and Lasse Collin. + +# 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. + +#SET_PATH - This line is a placeholder to ease patching this script. + +# Instead of unsetting XZ_OPT, just make sure that xz will use file format +# autodetection. This way memory usage limit and thread limit can be +# specified via XZ_OPT. +xz='xz --format=auto' + +version='xzmore (XZ Utils) 5.0.0' + +usage="Usage: ${0##*/} [OPTION]... [FILE]... +Like 'more', but operate on the uncompressed contents of xz compressed FILEs. + +Report bugs to <lasse.collin@tukaani.org>." + +case $1 in + --help) echo "$usage" || exit 2; exit;; + --version) echo "$version" || exit 2; exit;; +esac + +oldtty=`stty -g 2>/dev/null` +if stty -cbreak 2>/dev/null; then + cb='cbreak'; ncb='-cbreak' +else + # 'stty min 1' resets eof to ^a on both SunOS and SysV! + cb='min 1 -icanon'; ncb='icanon eof ^d' +fi +if test $? -eq 0 && test -n "$oldtty"; then + trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15 +else + trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15 +fi + +if test $# = 0; then + if test -t 0; then + echo "$usage"; exit 1 + else + $xz -cdfq | eval "${PAGER:-more}" + fi +else + FIRST=1 + for FILE; do + < "$FILE" || continue + if test $FIRST -eq 0; then + printf "%s--More--(Next file: %s)" "" "$FILE" + stty $cb -echo 2>/dev/null + ANS=`dd bs=1 count=1 2>/dev/null` + stty $ncb echo 2>/dev/null + echo " " + case "$ANS" in + [eq]) exit;; + esac + fi + if test "$ANS" != 's'; then + echo "------> $FILE <------" + $xz -cdfq -- "$FILE" | eval "${PAGER:-more}" + fi + if test -t 1; then + FIRST=0 + fi + done +fi diff --git a/beagle/debian-rfs/usr/bin/yes b/beagle/debian-rfs/usr/bin/yes Binary files differnew file mode 100755 index 0000000..2bc6292 --- /dev/null +++ b/beagle/debian-rfs/usr/bin/yes diff --git a/beagle/debian-rfs/usr/bin/zdump b/beagle/debian-rfs/usr/bin/zdump Binary files differnew file mode 100755 index 0000000..3877b8e --- /dev/null +++ b/beagle/debian-rfs/usr/bin/zdump |
