From 5238ad5a0c4a9e1c8cd036f5de4055e39bd71297 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 29 Apr 2011 09:09:27 +0200 Subject: added debootstrap stuff Signed-off-by: Manuel Traut --- beagle/debian-rfs/usr/bin/[ | Bin 0 -> 28160 bytes beagle/debian-rfs/usr/bin/addpart | Bin 0 -> 3500 bytes beagle/debian-rfs/usr/bin/arch | Bin 0 -> 22356 bytes beagle/debian-rfs/usr/bin/base64 | Bin 0 -> 28924 bytes beagle/debian-rfs/usr/bin/basename | Bin 0 -> 20380 bytes beagle/debian-rfs/usr/bin/bashbug | 272 ++++++++++++ beagle/debian-rfs/usr/bin/captoinfo | 1 + beagle/debian-rfs/usr/bin/catchsegv | 107 +++++ beagle/debian-rfs/usr/bin/chage | Bin 0 -> 47832 bytes beagle/debian-rfs/usr/bin/chattr | Bin 0 -> 8020 bytes beagle/debian-rfs/usr/bin/chcon | Bin 0 -> 55284 bytes beagle/debian-rfs/usr/bin/chfn | Bin 0 -> 32316 bytes beagle/debian-rfs/usr/bin/chkdupexe | 120 ++++++ beagle/debian-rfs/usr/bin/chrt | Bin 0 -> 7292 bytes beagle/debian-rfs/usr/bin/chsh | Bin 0 -> 27876 bytes beagle/debian-rfs/usr/bin/cksum | Bin 0 -> 24876 bytes beagle/debian-rfs/usr/bin/clear | Bin 0 -> 3864 bytes beagle/debian-rfs/usr/bin/clear_console | Bin 0 -> 6672 bytes beagle/debian-rfs/usr/bin/cmp | Bin 0 -> 38992 bytes beagle/debian-rfs/usr/bin/comm | Bin 0 -> 25012 bytes beagle/debian-rfs/usr/bin/csplit | Bin 0 -> 38844 bytes beagle/debian-rfs/usr/bin/cut | Bin 0 -> 37576 bytes beagle/debian-rfs/usr/bin/ddate | Bin 0 -> 7896 bytes beagle/debian-rfs/usr/bin/debconf | 120 ++++++ beagle/debian-rfs/usr/bin/debconf-apt-progress | 485 ++++++++++++++++++++++ beagle/debian-rfs/usr/bin/debconf-communicate | 34 ++ beagle/debian-rfs/usr/bin/debconf-copydb | 82 ++++ beagle/debian-rfs/usr/bin/debconf-escape | 47 +++ beagle/debian-rfs/usr/bin/debconf-set-selections | 148 +++++++ beagle/debian-rfs/usr/bin/debconf-show | 103 +++++ beagle/debian-rfs/usr/bin/delpart | Bin 0 -> 3428 bytes beagle/debian-rfs/usr/bin/diff | Bin 0 -> 104516 bytes beagle/debian-rfs/usr/bin/diff3 | Bin 0 -> 47068 bytes beagle/debian-rfs/usr/bin/dircolors | Bin 0 -> 29544 bytes beagle/debian-rfs/usr/bin/dirname | Bin 0 -> 20364 bytes beagle/debian-rfs/usr/bin/dpkg | Bin 0 -> 191564 bytes beagle/debian-rfs/usr/bin/dpkg-deb | Bin 0 -> 104788 bytes beagle/debian-rfs/usr/bin/dpkg-divert | Bin 0 -> 88164 bytes beagle/debian-rfs/usr/bin/dpkg-maintscript-helper | 324 +++++++++++++++ beagle/debian-rfs/usr/bin/dpkg-query | Bin 0 -> 88996 bytes beagle/debian-rfs/usr/bin/dpkg-split | Bin 0 -> 45488 bytes beagle/debian-rfs/usr/bin/dpkg-statoverride | Bin 0 -> 84372 bytes beagle/debian-rfs/usr/bin/dpkg-trigger | Bin 0 -> 75828 bytes beagle/debian-rfs/usr/bin/du | Bin 0 -> 88116 bytes beagle/debian-rfs/usr/bin/env | Bin 0 -> 20856 bytes beagle/debian-rfs/usr/bin/expand | Bin 0 -> 26484 bytes beagle/debian-rfs/usr/bin/expiry | Bin 0 -> 14340 bytes beagle/debian-rfs/usr/bin/expr | Bin 0 -> 31988 bytes beagle/debian-rfs/usr/bin/factor | Bin 0 -> 26736 bytes beagle/debian-rfs/usr/bin/faillog | Bin 0 -> 14612 bytes beagle/debian-rfs/usr/bin/fallocate | Bin 0 -> 6032 bytes beagle/debian-rfs/usr/bin/find | Bin 0 -> 138128 bytes beagle/debian-rfs/usr/bin/flock | Bin 0 -> 8024 bytes beagle/debian-rfs/usr/bin/fmt | Bin 0 -> 28008 bytes beagle/debian-rfs/usr/bin/fold | Bin 0 -> 23280 bytes beagle/debian-rfs/usr/bin/getconf | Bin 0 -> 17988 bytes beagle/debian-rfs/usr/bin/getent | Bin 0 -> 18396 bytes beagle/debian-rfs/usr/bin/getopt | Bin 0 -> 9216 bytes beagle/debian-rfs/usr/bin/gpasswd | Bin 0 -> 49932 bytes beagle/debian-rfs/usr/bin/groups | Bin 0 -> 22380 bytes beagle/debian-rfs/usr/bin/head | Bin 0 -> 33056 bytes beagle/debian-rfs/usr/bin/hostid | Bin 0 -> 19712 bytes beagle/debian-rfs/usr/bin/iconv | Bin 0 -> 46944 bytes beagle/debian-rfs/usr/bin/id | Bin 0 -> 25004 bytes beagle/debian-rfs/usr/bin/infocmp | Bin 0 -> 45736 bytes beagle/debian-rfs/usr/bin/infotocap | 1 + beagle/debian-rfs/usr/bin/install | Bin 0 -> 84568 bytes beagle/debian-rfs/usr/bin/ionice | Bin 0 -> 5872 bytes beagle/debian-rfs/usr/bin/ipcmk | Bin 0 -> 5428 bytes beagle/debian-rfs/usr/bin/ipcrm | Bin 0 -> 6876 bytes beagle/debian-rfs/usr/bin/ipcs | Bin 0 -> 14796 bytes beagle/debian-rfs/usr/bin/join | Bin 0 -> 32316 bytes beagle/debian-rfs/usr/bin/last | Bin 0 -> 12356 bytes beagle/debian-rfs/usr/bin/lastb | 1 + beagle/debian-rfs/usr/bin/lastlog | Bin 0 -> 8136 bytes beagle/debian-rfs/usr/bin/ldd | 192 +++++++++ beagle/debian-rfs/usr/bin/line | Bin 0 -> 3040 bytes beagle/debian-rfs/usr/bin/link | Bin 0 -> 20028 bytes beagle/debian-rfs/usr/bin/linux32 | 1 + beagle/debian-rfs/usr/bin/linux64 | 1 + beagle/debian-rfs/usr/bin/locale | Bin 0 -> 31772 bytes beagle/debian-rfs/usr/bin/localedef | Bin 0 -> 284708 bytes beagle/debian-rfs/usr/bin/logger | Bin 0 -> 7884 bytes beagle/debian-rfs/usr/bin/logname | Bin 0 -> 19808 bytes beagle/debian-rfs/usr/bin/lsattr | Bin 0 -> 6768 bytes beagle/debian-rfs/usr/bin/lscpu | Bin 0 -> 16860 bytes beagle/debian-rfs/usr/bin/lzmainfo | Bin 0 -> 7244 bytes beagle/debian-rfs/usr/bin/mawk | Bin 0 -> 99744 bytes beagle/debian-rfs/usr/bin/mcookie | Bin 0 -> 8448 bytes beagle/debian-rfs/usr/bin/md5sum | Bin 0 -> 33064 bytes beagle/debian-rfs/usr/bin/md5sum.textutils | 1 + beagle/debian-rfs/usr/bin/mesg | Bin 0 -> 4420 bytes beagle/debian-rfs/usr/bin/mkfifo | Bin 0 -> 22368 bytes beagle/debian-rfs/usr/bin/namei | Bin 0 -> 9284 bytes beagle/debian-rfs/usr/bin/ncurses5-config | 166 ++++++++ beagle/debian-rfs/usr/bin/ncursesw5-config | 166 ++++++++ beagle/debian-rfs/usr/bin/newgrp | Bin 0 -> 24044 bytes beagle/debian-rfs/usr/bin/nice | Bin 0 -> 22488 bytes beagle/debian-rfs/usr/bin/nl | Bin 0 -> 31516 bytes beagle/debian-rfs/usr/bin/nohup | Bin 0 -> 23080 bytes beagle/debian-rfs/usr/bin/nproc | Bin 0 -> 22368 bytes beagle/debian-rfs/usr/bin/od | Bin 0 -> 44560 bytes beagle/debian-rfs/usr/bin/oldfind | Bin 0 -> 136636 bytes beagle/debian-rfs/usr/bin/partx | Bin 0 -> 22296 bytes beagle/debian-rfs/usr/bin/passwd | Bin 0 -> 32864 bytes beagle/debian-rfs/usr/bin/paste | Bin 0 -> 23032 bytes beagle/debian-rfs/usr/bin/pathchk | Bin 0 -> 22356 bytes beagle/debian-rfs/usr/bin/perl | Bin 0 -> 5176 bytes beagle/debian-rfs/usr/bin/perl5.10.1 | Bin 0 -> 5176 bytes beagle/debian-rfs/usr/bin/pg | Bin 0 -> 26576 bytes beagle/debian-rfs/usr/bin/pinky | Bin 0 -> 29108 bytes beagle/debian-rfs/usr/bin/pr | Bin 0 -> 55292 bytes beagle/debian-rfs/usr/bin/printenv | Bin 0 -> 20212 bytes beagle/debian-rfs/usr/bin/printf | Bin 0 -> 26504 bytes beagle/debian-rfs/usr/bin/ptx | Bin 0 -> 55276 bytes beagle/debian-rfs/usr/bin/rename.ul | Bin 0 -> 4664 bytes beagle/debian-rfs/usr/bin/renice | Bin 0 -> 5848 bytes beagle/debian-rfs/usr/bin/reset | 1 + beagle/debian-rfs/usr/bin/rev | Bin 0 -> 4872 bytes beagle/debian-rfs/usr/bin/rgrep | 4 + beagle/debian-rfs/usr/bin/rpcinfo | Bin 0 -> 13936 bytes beagle/debian-rfs/usr/bin/runcon | Bin 0 -> 24300 bytes beagle/debian-rfs/usr/bin/savelog | 354 ++++++++++++++++ beagle/debian-rfs/usr/bin/script | Bin 0 -> 11752 bytes beagle/debian-rfs/usr/bin/scriptreplay | Bin 0 -> 8344 bytes beagle/debian-rfs/usr/bin/sdiff | Bin 0 -> 38884 bytes beagle/debian-rfs/usr/bin/sensible-browser | 50 +++ beagle/debian-rfs/usr/bin/sensible-editor | 32 ++ beagle/debian-rfs/usr/bin/sensible-pager | 13 + beagle/debian-rfs/usr/bin/seq | Bin 0 -> 27012 bytes beagle/debian-rfs/usr/bin/setarch | Bin 0 -> 7684 bytes beagle/debian-rfs/usr/bin/setsid | Bin 0 -> 3852 bytes beagle/debian-rfs/usr/bin/setterm | Bin 0 -> 19000 bytes beagle/debian-rfs/usr/bin/sg | 1 + beagle/debian-rfs/usr/bin/sha1sum | Bin 0 -> 36544 bytes beagle/debian-rfs/usr/bin/sha224sum | Bin 0 -> 42884 bytes beagle/debian-rfs/usr/bin/sha256sum | Bin 0 -> 42884 bytes beagle/debian-rfs/usr/bin/sha384sum | Bin 0 -> 110148 bytes beagle/debian-rfs/usr/bin/sha512sum | Bin 0 -> 110148 bytes beagle/debian-rfs/usr/bin/shred | Bin 0 -> 47388 bytes beagle/debian-rfs/usr/bin/shuf | Bin 0 -> 32980 bytes beagle/debian-rfs/usr/bin/sort | Bin 0 -> 80056 bytes beagle/debian-rfs/usr/bin/split | Bin 0 -> 47052 bytes beagle/debian-rfs/usr/bin/stat | Bin 0 -> 43800 bytes beagle/debian-rfs/usr/bin/stdbuf | Bin 0 -> 42956 bytes beagle/debian-rfs/usr/bin/sum | Bin 0 -> 33484 bytes beagle/debian-rfs/usr/bin/tabs | Bin 0 -> 9092 bytes beagle/debian-rfs/usr/bin/tac | Bin 0 -> 27864 bytes beagle/debian-rfs/usr/bin/tail | Bin 0 -> 56992 bytes beagle/debian-rfs/usr/bin/taskset | Bin 0 -> 8876 bytes beagle/debian-rfs/usr/bin/tee | Bin 0 -> 22380 bytes beagle/debian-rfs/usr/bin/test | Bin 0 -> 26468 bytes beagle/debian-rfs/usr/bin/tic | Bin 0 -> 44864 bytes beagle/debian-rfs/usr/bin/timeout | Bin 0 -> 39868 bytes beagle/debian-rfs/usr/bin/toe | Bin 0 -> 9316 bytes beagle/debian-rfs/usr/bin/touch | 1 + beagle/debian-rfs/usr/bin/tput | Bin 0 -> 9552 bytes beagle/debian-rfs/usr/bin/tr | Bin 0 -> 38776 bytes beagle/debian-rfs/usr/bin/truncate | Bin 0 -> 42932 bytes beagle/debian-rfs/usr/bin/tset | Bin 0 -> 15320 bytes beagle/debian-rfs/usr/bin/tsort | Bin 0 -> 28108 bytes beagle/debian-rfs/usr/bin/tty | Bin 0 -> 19888 bytes beagle/debian-rfs/usr/bin/tzselect | 326 +++++++++++++++ beagle/debian-rfs/usr/bin/unexpand | Bin 0 -> 27160 bytes beagle/debian-rfs/usr/bin/uniq | Bin 0 -> 29444 bytes beagle/debian-rfs/usr/bin/unlink | Bin 0 -> 19896 bytes beagle/debian-rfs/usr/bin/unshare | Bin 0 -> 4940 bytes beagle/debian-rfs/usr/bin/unxz | 1 + beagle/debian-rfs/usr/bin/update-alternatives | Bin 0 -> 34680 bytes beagle/debian-rfs/usr/bin/users | Bin 0 -> 21208 bytes beagle/debian-rfs/usr/bin/wall | Bin 0 -> 10088 bytes beagle/debian-rfs/usr/bin/wc | Bin 0 -> 35560 bytes beagle/debian-rfs/usr/bin/whereis | Bin 0 -> 8104 bytes beagle/debian-rfs/usr/bin/which | 1 + beagle/debian-rfs/usr/bin/who | Bin 0 -> 31528 bytes beagle/debian-rfs/usr/bin/whoami | Bin 0 -> 19980 bytes beagle/debian-rfs/usr/bin/xargs | Bin 0 -> 31388 bytes beagle/debian-rfs/usr/bin/xz | Bin 0 -> 61032 bytes beagle/debian-rfs/usr/bin/xzcat | 1 + beagle/debian-rfs/usr/bin/xzcmp | 1 + beagle/debian-rfs/usr/bin/xzdiff | 172 ++++++++ beagle/debian-rfs/usr/bin/xzegrep | 1 + beagle/debian-rfs/usr/bin/xzfgrep | 1 + beagle/debian-rfs/usr/bin/xzgrep | 196 +++++++++ beagle/debian-rfs/usr/bin/xzless | 58 +++ beagle/debian-rfs/usr/bin/xzmore | 78 ++++ beagle/debian-rfs/usr/bin/yes | Bin 0 -> 19844 bytes beagle/debian-rfs/usr/bin/zdump | Bin 0 -> 9812 bytes 188 files changed, 3664 insertions(+) create mode 100755 beagle/debian-rfs/usr/bin/[ create mode 100755 beagle/debian-rfs/usr/bin/addpart create mode 100755 beagle/debian-rfs/usr/bin/arch create mode 100755 beagle/debian-rfs/usr/bin/base64 create mode 100755 beagle/debian-rfs/usr/bin/basename create mode 100755 beagle/debian-rfs/usr/bin/bashbug create mode 120000 beagle/debian-rfs/usr/bin/captoinfo create mode 100755 beagle/debian-rfs/usr/bin/catchsegv create mode 100755 beagle/debian-rfs/usr/bin/chage create mode 100755 beagle/debian-rfs/usr/bin/chattr create mode 100755 beagle/debian-rfs/usr/bin/chcon create mode 100755 beagle/debian-rfs/usr/bin/chfn create mode 100755 beagle/debian-rfs/usr/bin/chkdupexe create mode 100755 beagle/debian-rfs/usr/bin/chrt create mode 100755 beagle/debian-rfs/usr/bin/chsh create mode 100755 beagle/debian-rfs/usr/bin/cksum create mode 100755 beagle/debian-rfs/usr/bin/clear create mode 100755 beagle/debian-rfs/usr/bin/clear_console create mode 100755 beagle/debian-rfs/usr/bin/cmp create mode 100755 beagle/debian-rfs/usr/bin/comm create mode 100755 beagle/debian-rfs/usr/bin/csplit create mode 100755 beagle/debian-rfs/usr/bin/cut create mode 100755 beagle/debian-rfs/usr/bin/ddate create mode 100755 beagle/debian-rfs/usr/bin/debconf create mode 100755 beagle/debian-rfs/usr/bin/debconf-apt-progress create mode 100755 beagle/debian-rfs/usr/bin/debconf-communicate create mode 100755 beagle/debian-rfs/usr/bin/debconf-copydb create mode 100755 beagle/debian-rfs/usr/bin/debconf-escape create mode 100755 beagle/debian-rfs/usr/bin/debconf-set-selections create mode 100755 beagle/debian-rfs/usr/bin/debconf-show create mode 100755 beagle/debian-rfs/usr/bin/delpart create mode 100755 beagle/debian-rfs/usr/bin/diff create mode 100755 beagle/debian-rfs/usr/bin/diff3 create mode 100755 beagle/debian-rfs/usr/bin/dircolors create mode 100755 beagle/debian-rfs/usr/bin/dirname create mode 100755 beagle/debian-rfs/usr/bin/dpkg create mode 100755 beagle/debian-rfs/usr/bin/dpkg-deb create mode 100755 beagle/debian-rfs/usr/bin/dpkg-divert create mode 100755 beagle/debian-rfs/usr/bin/dpkg-maintscript-helper create mode 100755 beagle/debian-rfs/usr/bin/dpkg-query create mode 100755 beagle/debian-rfs/usr/bin/dpkg-split create mode 100755 beagle/debian-rfs/usr/bin/dpkg-statoverride create mode 100755 beagle/debian-rfs/usr/bin/dpkg-trigger create mode 100755 beagle/debian-rfs/usr/bin/du create mode 100755 beagle/debian-rfs/usr/bin/env create mode 100755 beagle/debian-rfs/usr/bin/expand create mode 100755 beagle/debian-rfs/usr/bin/expiry create mode 100755 beagle/debian-rfs/usr/bin/expr create mode 100755 beagle/debian-rfs/usr/bin/factor create mode 100755 beagle/debian-rfs/usr/bin/faillog create mode 100755 beagle/debian-rfs/usr/bin/fallocate create mode 100755 beagle/debian-rfs/usr/bin/find create mode 100755 beagle/debian-rfs/usr/bin/flock create mode 100755 beagle/debian-rfs/usr/bin/fmt create mode 100755 beagle/debian-rfs/usr/bin/fold create mode 100755 beagle/debian-rfs/usr/bin/getconf create mode 100755 beagle/debian-rfs/usr/bin/getent create mode 100755 beagle/debian-rfs/usr/bin/getopt create mode 100755 beagle/debian-rfs/usr/bin/gpasswd create mode 100755 beagle/debian-rfs/usr/bin/groups create mode 100755 beagle/debian-rfs/usr/bin/head create mode 100755 beagle/debian-rfs/usr/bin/hostid create mode 100755 beagle/debian-rfs/usr/bin/iconv create mode 100755 beagle/debian-rfs/usr/bin/id create mode 100755 beagle/debian-rfs/usr/bin/infocmp create mode 120000 beagle/debian-rfs/usr/bin/infotocap create mode 100755 beagle/debian-rfs/usr/bin/install create mode 100755 beagle/debian-rfs/usr/bin/ionice create mode 100755 beagle/debian-rfs/usr/bin/ipcmk create mode 100755 beagle/debian-rfs/usr/bin/ipcrm create mode 100755 beagle/debian-rfs/usr/bin/ipcs create mode 100755 beagle/debian-rfs/usr/bin/join create mode 100755 beagle/debian-rfs/usr/bin/last create mode 120000 beagle/debian-rfs/usr/bin/lastb create mode 100755 beagle/debian-rfs/usr/bin/lastlog create mode 100755 beagle/debian-rfs/usr/bin/ldd create mode 100755 beagle/debian-rfs/usr/bin/line create mode 100755 beagle/debian-rfs/usr/bin/link create mode 120000 beagle/debian-rfs/usr/bin/linux32 create mode 120000 beagle/debian-rfs/usr/bin/linux64 create mode 100755 beagle/debian-rfs/usr/bin/locale create mode 100755 beagle/debian-rfs/usr/bin/localedef create mode 100755 beagle/debian-rfs/usr/bin/logger create mode 100755 beagle/debian-rfs/usr/bin/logname create mode 100755 beagle/debian-rfs/usr/bin/lsattr create mode 100755 beagle/debian-rfs/usr/bin/lscpu create mode 100755 beagle/debian-rfs/usr/bin/lzmainfo create mode 100755 beagle/debian-rfs/usr/bin/mawk create mode 100755 beagle/debian-rfs/usr/bin/mcookie create mode 100755 beagle/debian-rfs/usr/bin/md5sum create mode 120000 beagle/debian-rfs/usr/bin/md5sum.textutils create mode 100755 beagle/debian-rfs/usr/bin/mesg create mode 100755 beagle/debian-rfs/usr/bin/mkfifo create mode 100755 beagle/debian-rfs/usr/bin/namei create mode 100755 beagle/debian-rfs/usr/bin/ncurses5-config create mode 100755 beagle/debian-rfs/usr/bin/ncursesw5-config create mode 100755 beagle/debian-rfs/usr/bin/newgrp create mode 100755 beagle/debian-rfs/usr/bin/nice create mode 100755 beagle/debian-rfs/usr/bin/nl create mode 100755 beagle/debian-rfs/usr/bin/nohup create mode 100755 beagle/debian-rfs/usr/bin/nproc create mode 100755 beagle/debian-rfs/usr/bin/od create mode 100755 beagle/debian-rfs/usr/bin/oldfind create mode 100755 beagle/debian-rfs/usr/bin/partx create mode 100755 beagle/debian-rfs/usr/bin/passwd create mode 100755 beagle/debian-rfs/usr/bin/paste create mode 100755 beagle/debian-rfs/usr/bin/pathchk create mode 100755 beagle/debian-rfs/usr/bin/perl create mode 100755 beagle/debian-rfs/usr/bin/perl5.10.1 create mode 100755 beagle/debian-rfs/usr/bin/pg create mode 100755 beagle/debian-rfs/usr/bin/pinky create mode 100755 beagle/debian-rfs/usr/bin/pr create mode 100755 beagle/debian-rfs/usr/bin/printenv create mode 100755 beagle/debian-rfs/usr/bin/printf create mode 100755 beagle/debian-rfs/usr/bin/ptx create mode 100755 beagle/debian-rfs/usr/bin/rename.ul create mode 100755 beagle/debian-rfs/usr/bin/renice create mode 120000 beagle/debian-rfs/usr/bin/reset create mode 100755 beagle/debian-rfs/usr/bin/rev create mode 100755 beagle/debian-rfs/usr/bin/rgrep create mode 100755 beagle/debian-rfs/usr/bin/rpcinfo create mode 100755 beagle/debian-rfs/usr/bin/runcon create mode 100755 beagle/debian-rfs/usr/bin/savelog create mode 100755 beagle/debian-rfs/usr/bin/script create mode 100755 beagle/debian-rfs/usr/bin/scriptreplay create mode 100755 beagle/debian-rfs/usr/bin/sdiff create mode 100755 beagle/debian-rfs/usr/bin/sensible-browser create mode 100755 beagle/debian-rfs/usr/bin/sensible-editor create mode 100755 beagle/debian-rfs/usr/bin/sensible-pager create mode 100755 beagle/debian-rfs/usr/bin/seq create mode 100755 beagle/debian-rfs/usr/bin/setarch create mode 100755 beagle/debian-rfs/usr/bin/setsid create mode 100755 beagle/debian-rfs/usr/bin/setterm create mode 120000 beagle/debian-rfs/usr/bin/sg create mode 100755 beagle/debian-rfs/usr/bin/sha1sum create mode 100755 beagle/debian-rfs/usr/bin/sha224sum create mode 100755 beagle/debian-rfs/usr/bin/sha256sum create mode 100755 beagle/debian-rfs/usr/bin/sha384sum create mode 100755 beagle/debian-rfs/usr/bin/sha512sum create mode 100755 beagle/debian-rfs/usr/bin/shred create mode 100755 beagle/debian-rfs/usr/bin/shuf create mode 100755 beagle/debian-rfs/usr/bin/sort create mode 100755 beagle/debian-rfs/usr/bin/split create mode 100755 beagle/debian-rfs/usr/bin/stat create mode 100755 beagle/debian-rfs/usr/bin/stdbuf create mode 100755 beagle/debian-rfs/usr/bin/sum create mode 100755 beagle/debian-rfs/usr/bin/tabs create mode 100755 beagle/debian-rfs/usr/bin/tac create mode 100755 beagle/debian-rfs/usr/bin/tail create mode 100755 beagle/debian-rfs/usr/bin/taskset create mode 100755 beagle/debian-rfs/usr/bin/tee create mode 100755 beagle/debian-rfs/usr/bin/test create mode 100755 beagle/debian-rfs/usr/bin/tic create mode 100755 beagle/debian-rfs/usr/bin/timeout create mode 100755 beagle/debian-rfs/usr/bin/toe create mode 120000 beagle/debian-rfs/usr/bin/touch create mode 100755 beagle/debian-rfs/usr/bin/tput create mode 100755 beagle/debian-rfs/usr/bin/tr create mode 100755 beagle/debian-rfs/usr/bin/truncate create mode 100755 beagle/debian-rfs/usr/bin/tset create mode 100755 beagle/debian-rfs/usr/bin/tsort create mode 100755 beagle/debian-rfs/usr/bin/tty create mode 100755 beagle/debian-rfs/usr/bin/tzselect create mode 100755 beagle/debian-rfs/usr/bin/unexpand create mode 100755 beagle/debian-rfs/usr/bin/uniq create mode 100755 beagle/debian-rfs/usr/bin/unlink create mode 100755 beagle/debian-rfs/usr/bin/unshare create mode 120000 beagle/debian-rfs/usr/bin/unxz create mode 100755 beagle/debian-rfs/usr/bin/update-alternatives create mode 100755 beagle/debian-rfs/usr/bin/users create mode 100755 beagle/debian-rfs/usr/bin/wall create mode 100755 beagle/debian-rfs/usr/bin/wc create mode 100755 beagle/debian-rfs/usr/bin/whereis create mode 120000 beagle/debian-rfs/usr/bin/which create mode 100755 beagle/debian-rfs/usr/bin/who create mode 100755 beagle/debian-rfs/usr/bin/whoami create mode 100755 beagle/debian-rfs/usr/bin/xargs create mode 100755 beagle/debian-rfs/usr/bin/xz create mode 120000 beagle/debian-rfs/usr/bin/xzcat create mode 120000 beagle/debian-rfs/usr/bin/xzcmp create mode 100755 beagle/debian-rfs/usr/bin/xzdiff create mode 120000 beagle/debian-rfs/usr/bin/xzegrep create mode 120000 beagle/debian-rfs/usr/bin/xzfgrep create mode 100755 beagle/debian-rfs/usr/bin/xzgrep create mode 100755 beagle/debian-rfs/usr/bin/xzless create mode 100755 beagle/debian-rfs/usr/bin/xzmore create mode 100755 beagle/debian-rfs/usr/bin/yes create mode 100755 beagle/debian-rfs/usr/bin/zdump (limited to 'beagle/debian-rfs/usr/bin') diff --git a/beagle/debian-rfs/usr/bin/[ b/beagle/debian-rfs/usr/bin/[ new file mode 100755 index 0000000..d5b9727 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/[ differ diff --git a/beagle/debian-rfs/usr/bin/addpart b/beagle/debian-rfs/usr/bin/addpart new file mode 100755 index 0000000..64527e5 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/addpart differ diff --git a/beagle/debian-rfs/usr/bin/arch b/beagle/debian-rfs/usr/bin/arch new file mode 100755 index 0000000..c957500 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/arch differ diff --git a/beagle/debian-rfs/usr/bin/base64 b/beagle/debian-rfs/usr/bin/base64 new file mode 100755 index 0000000..9d77ccc Binary files /dev/null and b/beagle/debian-rfs/usr/bin/base64 differ diff --git a/beagle/debian-rfs/usr/bin/basename b/beagle/debian-rfs/usr/bin/basename new file mode 100755 index 0000000..3506974 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/basename differ 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 . + +# +# 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" <> $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 , 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 "." + 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 new file mode 100755 index 0000000..3a58ac1 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/chage differ diff --git a/beagle/debian-rfs/usr/bin/chattr b/beagle/debian-rfs/usr/bin/chattr new file mode 100755 index 0000000..60b676e Binary files /dev/null and b/beagle/debian-rfs/usr/bin/chattr differ diff --git a/beagle/debian-rfs/usr/bin/chcon b/beagle/debian-rfs/usr/bin/chcon new file mode 100755 index 0000000..054b771 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/chcon differ diff --git a/beagle/debian-rfs/usr/bin/chfn b/beagle/debian-rfs/usr/bin/chfn new file mode 100755 index 0000000..718eb8c Binary files /dev/null and b/beagle/debian-rfs/usr/bin/chfn differ 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 +# 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 new file mode 100755 index 0000000..7660ede Binary files /dev/null and b/beagle/debian-rfs/usr/bin/chrt differ diff --git a/beagle/debian-rfs/usr/bin/chsh b/beagle/debian-rfs/usr/bin/chsh new file mode 100755 index 0000000..7845866 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/chsh differ diff --git a/beagle/debian-rfs/usr/bin/cksum b/beagle/debian-rfs/usr/bin/cksum new file mode 100755 index 0000000..6c35c59 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/cksum differ diff --git a/beagle/debian-rfs/usr/bin/clear b/beagle/debian-rfs/usr/bin/clear new file mode 100755 index 0000000..3a36b58 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/clear differ diff --git a/beagle/debian-rfs/usr/bin/clear_console b/beagle/debian-rfs/usr/bin/clear_console new file mode 100755 index 0000000..86bd4bf Binary files /dev/null and b/beagle/debian-rfs/usr/bin/clear_console differ diff --git a/beagle/debian-rfs/usr/bin/cmp b/beagle/debian-rfs/usr/bin/cmp new file mode 100755 index 0000000..772a452 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/cmp differ diff --git a/beagle/debian-rfs/usr/bin/comm b/beagle/debian-rfs/usr/bin/comm new file mode 100755 index 0000000..ea034c4 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/comm differ diff --git a/beagle/debian-rfs/usr/bin/csplit b/beagle/debian-rfs/usr/bin/csplit new file mode 100755 index 0000000..9e7f89f Binary files /dev/null and b/beagle/debian-rfs/usr/bin/csplit differ diff --git a/beagle/debian-rfs/usr/bin/cut b/beagle/debian-rfs/usr/bin/cut new file mode 100755 index 0000000..0c61929 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/cut differ diff --git a/beagle/debian-rfs/usr/bin/ddate b/beagle/debian-rfs/usr/bin/ddate new file mode 100755 index 0000000..f908069 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/ddate differ 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 (in the +debconf-doc package). + +The B 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 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 or L. + +=head1 OPTIONS + +=over 4 + +=item B<-o>I, B<--owner=>I + +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, B<--frontend=>I + +Select the frontend to use. + +=item B<-p>I, B<--priority=>I + +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, L + +=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 + +=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 = ; + 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 <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 < \$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 <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 < \$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 new file mode 100755 index 0000000..5082350 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/delpart differ diff --git a/beagle/debian-rfs/usr/bin/diff b/beagle/debian-rfs/usr/bin/diff new file mode 100755 index 0000000..0ab3527 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/diff differ diff --git a/beagle/debian-rfs/usr/bin/diff3 b/beagle/debian-rfs/usr/bin/diff3 new file mode 100755 index 0000000..675fd4b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/diff3 differ diff --git a/beagle/debian-rfs/usr/bin/dircolors b/beagle/debian-rfs/usr/bin/dircolors new file mode 100755 index 0000000..df9ef4a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dircolors differ diff --git a/beagle/debian-rfs/usr/bin/dirname b/beagle/debian-rfs/usr/bin/dirname new file mode 100755 index 0000000..5d23f28 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dirname differ diff --git a/beagle/debian-rfs/usr/bin/dpkg b/beagle/debian-rfs/usr/bin/dpkg new file mode 100755 index 0000000..d8a4c0f Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dpkg differ diff --git a/beagle/debian-rfs/usr/bin/dpkg-deb b/beagle/debian-rfs/usr/bin/dpkg-deb new file mode 100755 index 0000000..c84625b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dpkg-deb differ diff --git a/beagle/debian-rfs/usr/bin/dpkg-divert b/beagle/debian-rfs/usr/bin/dpkg-divert new file mode 100755 index 0000000..d048e6c Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dpkg-divert differ 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 +# Copyright © 2008 Joey Hess +# 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 . + +# 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 < -- + +Commands and parameters: + + supports + Returns 0 (success) if the given command is supported, 1 + otherwise. + + rm_conffile [ []] + Remove obsolete conffile. + Must be called in preinst, postinst and postrm. + + mv_conffile [ []] + 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 + Copyright (C) 2008 Joey Hess + Copyright (C) 2007 Guillem Jover + 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 new file mode 100755 index 0000000..bbf69fe Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dpkg-query differ diff --git a/beagle/debian-rfs/usr/bin/dpkg-split b/beagle/debian-rfs/usr/bin/dpkg-split new file mode 100755 index 0000000..725f827 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dpkg-split differ diff --git a/beagle/debian-rfs/usr/bin/dpkg-statoverride b/beagle/debian-rfs/usr/bin/dpkg-statoverride new file mode 100755 index 0000000..adaf31a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dpkg-statoverride differ diff --git a/beagle/debian-rfs/usr/bin/dpkg-trigger b/beagle/debian-rfs/usr/bin/dpkg-trigger new file mode 100755 index 0000000..37ee09b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/dpkg-trigger differ diff --git a/beagle/debian-rfs/usr/bin/du b/beagle/debian-rfs/usr/bin/du new file mode 100755 index 0000000..b497ced Binary files /dev/null and b/beagle/debian-rfs/usr/bin/du differ diff --git a/beagle/debian-rfs/usr/bin/env b/beagle/debian-rfs/usr/bin/env new file mode 100755 index 0000000..a7c4616 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/env differ diff --git a/beagle/debian-rfs/usr/bin/expand b/beagle/debian-rfs/usr/bin/expand new file mode 100755 index 0000000..cad6d8b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/expand differ diff --git a/beagle/debian-rfs/usr/bin/expiry b/beagle/debian-rfs/usr/bin/expiry new file mode 100755 index 0000000..de8721f Binary files /dev/null and b/beagle/debian-rfs/usr/bin/expiry differ diff --git a/beagle/debian-rfs/usr/bin/expr b/beagle/debian-rfs/usr/bin/expr new file mode 100755 index 0000000..d409159 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/expr differ diff --git a/beagle/debian-rfs/usr/bin/factor b/beagle/debian-rfs/usr/bin/factor new file mode 100755 index 0000000..a49927c Binary files /dev/null and b/beagle/debian-rfs/usr/bin/factor differ diff --git a/beagle/debian-rfs/usr/bin/faillog b/beagle/debian-rfs/usr/bin/faillog new file mode 100755 index 0000000..f1628f5 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/faillog differ diff --git a/beagle/debian-rfs/usr/bin/fallocate b/beagle/debian-rfs/usr/bin/fallocate new file mode 100755 index 0000000..7100cff Binary files /dev/null and b/beagle/debian-rfs/usr/bin/fallocate differ diff --git a/beagle/debian-rfs/usr/bin/find b/beagle/debian-rfs/usr/bin/find new file mode 100755 index 0000000..f1f13e3 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/find differ diff --git a/beagle/debian-rfs/usr/bin/flock b/beagle/debian-rfs/usr/bin/flock new file mode 100755 index 0000000..2312a76 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/flock differ diff --git a/beagle/debian-rfs/usr/bin/fmt b/beagle/debian-rfs/usr/bin/fmt new file mode 100755 index 0000000..ce88c48 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/fmt differ diff --git a/beagle/debian-rfs/usr/bin/fold b/beagle/debian-rfs/usr/bin/fold new file mode 100755 index 0000000..246e8b7 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/fold differ diff --git a/beagle/debian-rfs/usr/bin/getconf b/beagle/debian-rfs/usr/bin/getconf new file mode 100755 index 0000000..1f73b8b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/getconf differ diff --git a/beagle/debian-rfs/usr/bin/getent b/beagle/debian-rfs/usr/bin/getent new file mode 100755 index 0000000..fbd1553 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/getent differ diff --git a/beagle/debian-rfs/usr/bin/getopt b/beagle/debian-rfs/usr/bin/getopt new file mode 100755 index 0000000..98e4dfd Binary files /dev/null and b/beagle/debian-rfs/usr/bin/getopt differ diff --git a/beagle/debian-rfs/usr/bin/gpasswd b/beagle/debian-rfs/usr/bin/gpasswd new file mode 100755 index 0000000..6fc6a52 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/gpasswd differ diff --git a/beagle/debian-rfs/usr/bin/groups b/beagle/debian-rfs/usr/bin/groups new file mode 100755 index 0000000..af7347b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/groups differ diff --git a/beagle/debian-rfs/usr/bin/head b/beagle/debian-rfs/usr/bin/head new file mode 100755 index 0000000..3932a30 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/head differ diff --git a/beagle/debian-rfs/usr/bin/hostid b/beagle/debian-rfs/usr/bin/hostid new file mode 100755 index 0000000..7d04a50 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/hostid differ diff --git a/beagle/debian-rfs/usr/bin/iconv b/beagle/debian-rfs/usr/bin/iconv new file mode 100755 index 0000000..4173cf6 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/iconv differ diff --git a/beagle/debian-rfs/usr/bin/id b/beagle/debian-rfs/usr/bin/id new file mode 100755 index 0000000..688f33a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/id differ diff --git a/beagle/debian-rfs/usr/bin/infocmp b/beagle/debian-rfs/usr/bin/infocmp new file mode 100755 index 0000000..7283425 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/infocmp differ 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 new file mode 100755 index 0000000..5b90aa1 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/install differ diff --git a/beagle/debian-rfs/usr/bin/ionice b/beagle/debian-rfs/usr/bin/ionice new file mode 100755 index 0000000..f2e9008 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/ionice differ diff --git a/beagle/debian-rfs/usr/bin/ipcmk b/beagle/debian-rfs/usr/bin/ipcmk new file mode 100755 index 0000000..f66fb2a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/ipcmk differ diff --git a/beagle/debian-rfs/usr/bin/ipcrm b/beagle/debian-rfs/usr/bin/ipcrm new file mode 100755 index 0000000..6cfe33f Binary files /dev/null and b/beagle/debian-rfs/usr/bin/ipcrm differ diff --git a/beagle/debian-rfs/usr/bin/ipcs b/beagle/debian-rfs/usr/bin/ipcs new file mode 100755 index 0000000..769aaa7 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/ipcs differ diff --git a/beagle/debian-rfs/usr/bin/join b/beagle/debian-rfs/usr/bin/join new file mode 100755 index 0000000..b866af5 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/join differ diff --git a/beagle/debian-rfs/usr/bin/last b/beagle/debian-rfs/usr/bin/last new file mode 100755 index 0000000..dd0d58b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/last differ 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 new file mode 100755 index 0000000..4cc986a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/lastlog differ 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. +" "" + 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 new file mode 100755 index 0000000..af28397 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/line differ diff --git a/beagle/debian-rfs/usr/bin/link b/beagle/debian-rfs/usr/bin/link new file mode 100755 index 0000000..7d9dda4 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/link differ 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 new file mode 100755 index 0000000..2f3cba4 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/locale differ diff --git a/beagle/debian-rfs/usr/bin/localedef b/beagle/debian-rfs/usr/bin/localedef new file mode 100755 index 0000000..8874fb7 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/localedef differ diff --git a/beagle/debian-rfs/usr/bin/logger b/beagle/debian-rfs/usr/bin/logger new file mode 100755 index 0000000..fe06467 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/logger differ diff --git a/beagle/debian-rfs/usr/bin/logname b/beagle/debian-rfs/usr/bin/logname new file mode 100755 index 0000000..777e5dd Binary files /dev/null and b/beagle/debian-rfs/usr/bin/logname differ diff --git a/beagle/debian-rfs/usr/bin/lsattr b/beagle/debian-rfs/usr/bin/lsattr new file mode 100755 index 0000000..4705961 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/lsattr differ diff --git a/beagle/debian-rfs/usr/bin/lscpu b/beagle/debian-rfs/usr/bin/lscpu new file mode 100755 index 0000000..4ae0cf9 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/lscpu differ diff --git a/beagle/debian-rfs/usr/bin/lzmainfo b/beagle/debian-rfs/usr/bin/lzmainfo new file mode 100755 index 0000000..f163802 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/lzmainfo differ diff --git a/beagle/debian-rfs/usr/bin/mawk b/beagle/debian-rfs/usr/bin/mawk new file mode 100755 index 0000000..1fa2553 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/mawk differ diff --git a/beagle/debian-rfs/usr/bin/mcookie b/beagle/debian-rfs/usr/bin/mcookie new file mode 100755 index 0000000..124236a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/mcookie differ diff --git a/beagle/debian-rfs/usr/bin/md5sum b/beagle/debian-rfs/usr/bin/md5sum new file mode 100755 index 0000000..c7e2920 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/md5sum differ 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 new file mode 100755 index 0000000..2bd38bb Binary files /dev/null and b/beagle/debian-rfs/usr/bin/mesg differ diff --git a/beagle/debian-rfs/usr/bin/mkfifo b/beagle/debian-rfs/usr/bin/mkfifo new file mode 100755 index 0000000..4d80446 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/mkfifo differ diff --git a/beagle/debian-rfs/usr/bin/namei b/beagle/debian-rfs/usr/bin/namei new file mode 100755 index 0000000..65eaf7a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/namei differ 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: +# +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 <&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: +# +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 <&2 + exit 1 + ;; + esac + shift +done +# vile:shmode diff --git a/beagle/debian-rfs/usr/bin/newgrp b/beagle/debian-rfs/usr/bin/newgrp new file mode 100755 index 0000000..3e9236d Binary files /dev/null and b/beagle/debian-rfs/usr/bin/newgrp differ diff --git a/beagle/debian-rfs/usr/bin/nice b/beagle/debian-rfs/usr/bin/nice new file mode 100755 index 0000000..b7925c8 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/nice differ diff --git a/beagle/debian-rfs/usr/bin/nl b/beagle/debian-rfs/usr/bin/nl new file mode 100755 index 0000000..1809c64 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/nl differ diff --git a/beagle/debian-rfs/usr/bin/nohup b/beagle/debian-rfs/usr/bin/nohup new file mode 100755 index 0000000..ed6d135 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/nohup differ diff --git a/beagle/debian-rfs/usr/bin/nproc b/beagle/debian-rfs/usr/bin/nproc new file mode 100755 index 0000000..3ab1582 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/nproc differ diff --git a/beagle/debian-rfs/usr/bin/od b/beagle/debian-rfs/usr/bin/od new file mode 100755 index 0000000..ab0dd10 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/od differ diff --git a/beagle/debian-rfs/usr/bin/oldfind b/beagle/debian-rfs/usr/bin/oldfind new file mode 100755 index 0000000..7ed2698 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/oldfind differ diff --git a/beagle/debian-rfs/usr/bin/partx b/beagle/debian-rfs/usr/bin/partx new file mode 100755 index 0000000..123e003 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/partx differ diff --git a/beagle/debian-rfs/usr/bin/passwd b/beagle/debian-rfs/usr/bin/passwd new file mode 100755 index 0000000..826f09b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/passwd differ diff --git a/beagle/debian-rfs/usr/bin/paste b/beagle/debian-rfs/usr/bin/paste new file mode 100755 index 0000000..6e92731 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/paste differ diff --git a/beagle/debian-rfs/usr/bin/pathchk b/beagle/debian-rfs/usr/bin/pathchk new file mode 100755 index 0000000..6f2183c Binary files /dev/null and b/beagle/debian-rfs/usr/bin/pathchk differ diff --git a/beagle/debian-rfs/usr/bin/perl b/beagle/debian-rfs/usr/bin/perl new file mode 100755 index 0000000..53b35df Binary files /dev/null and b/beagle/debian-rfs/usr/bin/perl differ diff --git a/beagle/debian-rfs/usr/bin/perl5.10.1 b/beagle/debian-rfs/usr/bin/perl5.10.1 new file mode 100755 index 0000000..53b35df Binary files /dev/null and b/beagle/debian-rfs/usr/bin/perl5.10.1 differ diff --git a/beagle/debian-rfs/usr/bin/pg b/beagle/debian-rfs/usr/bin/pg new file mode 100755 index 0000000..86ffc67 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/pg differ diff --git a/beagle/debian-rfs/usr/bin/pinky b/beagle/debian-rfs/usr/bin/pinky new file mode 100755 index 0000000..3320115 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/pinky differ diff --git a/beagle/debian-rfs/usr/bin/pr b/beagle/debian-rfs/usr/bin/pr new file mode 100755 index 0000000..943b887 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/pr differ diff --git a/beagle/debian-rfs/usr/bin/printenv b/beagle/debian-rfs/usr/bin/printenv new file mode 100755 index 0000000..2b1e4ca Binary files /dev/null and b/beagle/debian-rfs/usr/bin/printenv differ diff --git a/beagle/debian-rfs/usr/bin/printf b/beagle/debian-rfs/usr/bin/printf new file mode 100755 index 0000000..2da842c Binary files /dev/null and b/beagle/debian-rfs/usr/bin/printf differ diff --git a/beagle/debian-rfs/usr/bin/ptx b/beagle/debian-rfs/usr/bin/ptx new file mode 100755 index 0000000..e431328 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/ptx differ diff --git a/beagle/debian-rfs/usr/bin/rename.ul b/beagle/debian-rfs/usr/bin/rename.ul new file mode 100755 index 0000000..7eb3c75 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/rename.ul differ diff --git a/beagle/debian-rfs/usr/bin/renice b/beagle/debian-rfs/usr/bin/renice new file mode 100755 index 0000000..2a1f2c6 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/renice differ 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 new file mode 100755 index 0000000..5668ff0 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/rev differ 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 new file mode 100755 index 0000000..98148fd Binary files /dev/null and b/beagle/debian-rfs/usr/bin/rpcinfo differ diff --git a/beagle/debian-rfs/usr/bin/runcon b/beagle/debian-rfs/usr/bin/runcon new file mode 100755 index 0000000..ea45516 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/runcon differ 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 : +# * 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 : +# * 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'. +# +# where 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, 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 +# is never formed. The 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 new file mode 100755 index 0000000..a86e644 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/script differ diff --git a/beagle/debian-rfs/usr/bin/scriptreplay b/beagle/debian-rfs/usr/bin/scriptreplay new file mode 100755 index 0000000..abf1295 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/scriptreplay differ diff --git a/beagle/debian-rfs/usr/bin/sdiff b/beagle/debian-rfs/usr/bin/sdiff new file mode 100755 index 0000000..9b645e7 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/sdiff differ 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 new file mode 100755 index 0000000..376d268 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/seq differ diff --git a/beagle/debian-rfs/usr/bin/setarch b/beagle/debian-rfs/usr/bin/setarch new file mode 100755 index 0000000..65a96b4 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/setarch differ diff --git a/beagle/debian-rfs/usr/bin/setsid b/beagle/debian-rfs/usr/bin/setsid new file mode 100755 index 0000000..3d8b8cf Binary files /dev/null and b/beagle/debian-rfs/usr/bin/setsid differ diff --git a/beagle/debian-rfs/usr/bin/setterm b/beagle/debian-rfs/usr/bin/setterm new file mode 100755 index 0000000..8e6bbf9 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/setterm differ 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 new file mode 100755 index 0000000..fbe8220 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/sha1sum differ diff --git a/beagle/debian-rfs/usr/bin/sha224sum b/beagle/debian-rfs/usr/bin/sha224sum new file mode 100755 index 0000000..177a11d Binary files /dev/null and b/beagle/debian-rfs/usr/bin/sha224sum differ diff --git a/beagle/debian-rfs/usr/bin/sha256sum b/beagle/debian-rfs/usr/bin/sha256sum new file mode 100755 index 0000000..8596524 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/sha256sum differ diff --git a/beagle/debian-rfs/usr/bin/sha384sum b/beagle/debian-rfs/usr/bin/sha384sum new file mode 100755 index 0000000..6426b01 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/sha384sum differ diff --git a/beagle/debian-rfs/usr/bin/sha512sum b/beagle/debian-rfs/usr/bin/sha512sum new file mode 100755 index 0000000..9717df2 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/sha512sum differ diff --git a/beagle/debian-rfs/usr/bin/shred b/beagle/debian-rfs/usr/bin/shred new file mode 100755 index 0000000..cb6679b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/shred differ diff --git a/beagle/debian-rfs/usr/bin/shuf b/beagle/debian-rfs/usr/bin/shuf new file mode 100755 index 0000000..65e3893 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/shuf differ diff --git a/beagle/debian-rfs/usr/bin/sort b/beagle/debian-rfs/usr/bin/sort new file mode 100755 index 0000000..c11c260 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/sort differ diff --git a/beagle/debian-rfs/usr/bin/split b/beagle/debian-rfs/usr/bin/split new file mode 100755 index 0000000..f97ac49 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/split differ diff --git a/beagle/debian-rfs/usr/bin/stat b/beagle/debian-rfs/usr/bin/stat new file mode 100755 index 0000000..92cf20d Binary files /dev/null and b/beagle/debian-rfs/usr/bin/stat differ diff --git a/beagle/debian-rfs/usr/bin/stdbuf b/beagle/debian-rfs/usr/bin/stdbuf new file mode 100755 index 0000000..a09a704 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/stdbuf differ diff --git a/beagle/debian-rfs/usr/bin/sum b/beagle/debian-rfs/usr/bin/sum new file mode 100755 index 0000000..8d1a425 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/sum differ diff --git a/beagle/debian-rfs/usr/bin/tabs b/beagle/debian-rfs/usr/bin/tabs new file mode 100755 index 0000000..c4df0d0 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tabs differ diff --git a/beagle/debian-rfs/usr/bin/tac b/beagle/debian-rfs/usr/bin/tac new file mode 100755 index 0000000..e956006 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tac differ diff --git a/beagle/debian-rfs/usr/bin/tail b/beagle/debian-rfs/usr/bin/tail new file mode 100755 index 0000000..11d14eb Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tail differ diff --git a/beagle/debian-rfs/usr/bin/taskset b/beagle/debian-rfs/usr/bin/taskset new file mode 100755 index 0000000..ea6b760 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/taskset differ diff --git a/beagle/debian-rfs/usr/bin/tee b/beagle/debian-rfs/usr/bin/tee new file mode 100755 index 0000000..19da0f9 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tee differ diff --git a/beagle/debian-rfs/usr/bin/test b/beagle/debian-rfs/usr/bin/test new file mode 100755 index 0000000..999ed9e Binary files /dev/null and b/beagle/debian-rfs/usr/bin/test differ diff --git a/beagle/debian-rfs/usr/bin/tic b/beagle/debian-rfs/usr/bin/tic new file mode 100755 index 0000000..b364890 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tic differ diff --git a/beagle/debian-rfs/usr/bin/timeout b/beagle/debian-rfs/usr/bin/timeout new file mode 100755 index 0000000..f6986a2 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/timeout differ diff --git a/beagle/debian-rfs/usr/bin/toe b/beagle/debian-rfs/usr/bin/toe new file mode 100755 index 0000000..c524f14 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/toe differ 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 new file mode 100755 index 0000000..a00a9e7 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tput differ diff --git a/beagle/debian-rfs/usr/bin/tr b/beagle/debian-rfs/usr/bin/tr new file mode 100755 index 0000000..8c6c5eb Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tr differ diff --git a/beagle/debian-rfs/usr/bin/truncate b/beagle/debian-rfs/usr/bin/truncate new file mode 100755 index 0000000..739a25e Binary files /dev/null and b/beagle/debian-rfs/usr/bin/truncate differ diff --git a/beagle/debian-rfs/usr/bin/tset b/beagle/debian-rfs/usr/bin/tset new file mode 100755 index 0000000..a63247a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tset differ diff --git a/beagle/debian-rfs/usr/bin/tsort b/beagle/debian-rfs/usr/bin/tsort new file mode 100755 index 0000000..a9a3fb9 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tsort differ diff --git a/beagle/debian-rfs/usr/bin/tty b/beagle/debian-rfs/usr/bin/tty new file mode 100755 index 0000000..7bd7cf1 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/tty differ 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='' + +# 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: +# +# +# Bourne-Again shell (bash) +# +# +# +# Public domain ksh +# +# +# 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: +# +# +# GNU awk (gawk) +# +# +# +# mawk +# + + +# 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 2>&1 +[ $? = 123 ] || { + echo >&2 "$0: Sorry, your \`$AWK' program is not Posix compatible." + exit 1 +} + +if [ "$1" = "--help" ]; then + cat <&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 &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 &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 &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 new file mode 100755 index 0000000..f07d3e1 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/unexpand differ diff --git a/beagle/debian-rfs/usr/bin/uniq b/beagle/debian-rfs/usr/bin/uniq new file mode 100755 index 0000000..cf508a6 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/uniq differ diff --git a/beagle/debian-rfs/usr/bin/unlink b/beagle/debian-rfs/usr/bin/unlink new file mode 100755 index 0000000..b98089b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/unlink differ diff --git a/beagle/debian-rfs/usr/bin/unshare b/beagle/debian-rfs/usr/bin/unshare new file mode 100755 index 0000000..f58a2a2 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/unshare differ 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 new file mode 100755 index 0000000..d459002 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/update-alternatives differ diff --git a/beagle/debian-rfs/usr/bin/users b/beagle/debian-rfs/usr/bin/users new file mode 100755 index 0000000..dc3286b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/users differ diff --git a/beagle/debian-rfs/usr/bin/wall b/beagle/debian-rfs/usr/bin/wall new file mode 100755 index 0000000..19353e5 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/wall differ diff --git a/beagle/debian-rfs/usr/bin/wc b/beagle/debian-rfs/usr/bin/wc new file mode 100755 index 0000000..e40083a Binary files /dev/null and b/beagle/debian-rfs/usr/bin/wc differ diff --git a/beagle/debian-rfs/usr/bin/whereis b/beagle/debian-rfs/usr/bin/whereis new file mode 100755 index 0000000..dd6c064 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/whereis differ 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 new file mode 100755 index 0000000..374bfa1 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/who differ diff --git a/beagle/debian-rfs/usr/bin/whoami b/beagle/debian-rfs/usr/bin/whoami new file mode 100755 index 0000000..be88209 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/whoami differ diff --git a/beagle/debian-rfs/usr/bin/xargs b/beagle/debian-rfs/usr/bin/xargs new file mode 100755 index 0000000..345852c Binary files /dev/null and b/beagle/debian-rfs/usr/bin/xargs differ diff --git a/beagle/debian-rfs/usr/bin/xz b/beagle/debian-rfs/usr/bin/xz new file mode 100755 index 0000000..920148b Binary files /dev/null and b/beagle/debian-rfs/usr/bin/xz differ 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 ." + +# 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<&- &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 + +# 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 ." + +# 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 ." + +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 ." + +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 new file mode 100755 index 0000000..2bc6292 Binary files /dev/null and b/beagle/debian-rfs/usr/bin/yes differ diff --git a/beagle/debian-rfs/usr/bin/zdump b/beagle/debian-rfs/usr/bin/zdump new file mode 100755 index 0000000..3877b8e Binary files /dev/null and b/beagle/debian-rfs/usr/bin/zdump differ -- cgit v1.2.3