Skip to content
Browse files

chroot

  • Loading branch information...
0 parents commit aa7b9538ea35b7c0c0d3504d0f5b16117349e07f @kaihendry kaihendry committed
Showing with 59,637 additions and 0 deletions.
  1. BIN bin/bash
  2. BIN bin/bunzip2
  3. BIN bin/busybox
  4. BIN bin/bzcat
  5. +1 −0 bin/bzcmp
  6. +76 −0 bin/bzdiff
  7. +1 −0 bin/bzegrep
  8. +182 −0 bin/bzexe
  9. +1 −0 bin/bzfgrep
  10. +132 −0 bin/bzgrep
  11. BIN bin/bzip2
  12. BIN bin/bzip2recover
  13. +1 −0 bin/bzless
  14. +61 −0 bin/bzmore
  15. BIN bin/cat
  16. BIN bin/chgrp
  17. BIN bin/chmod
  18. BIN bin/chown
  19. BIN bin/chvt
  20. BIN bin/cp
  21. BIN bin/cpio
  22. BIN bin/dash
  23. BIN bin/date
  24. BIN bin/dd
  25. BIN bin/df
  26. BIN bin/dir
  27. BIN bin/dmesg
  28. BIN bin/dnsdomainname
  29. BIN bin/domainname
  30. BIN bin/dumpkeys
  31. BIN bin/echo
  32. BIN bin/egrep
  33. BIN bin/false
  34. BIN bin/fgconsole
  35. BIN bin/fgrep
  36. BIN bin/findmnt
  37. BIN bin/grep
  38. +3 −0 bin/gunzip
  39. +229 −0 bin/gzexe
  40. BIN bin/gzip
  41. BIN bin/hostname
  42. BIN bin/ip
  43. BIN bin/kbd_mode
  44. BIN bin/kill
  45. +49 −0 bin/live-system
  46. BIN bin/ln
  47. BIN bin/loadkeys
  48. BIN bin/login
  49. BIN bin/ls
  50. BIN bin/lsblk
  51. BIN bin/lsmod
  52. BIN bin/mkdir
  53. BIN bin/mknod
  54. BIN bin/mktemp
  55. BIN bin/more
  56. BIN bin/mount
  57. BIN bin/mountpoint
  58. +1 −0 bin/mt
  59. BIN bin/mt-gnu
  60. BIN bin/mv
  61. BIN bin/nano
  62. +1 −0 bin/nc
  63. BIN bin/nc.traditional
  64. +1 −0 bin/netcat
  65. BIN bin/netstat
  66. BIN bin/nisdomainname
  67. +1 −0 bin/open
  68. BIN bin/openvt
  69. +1 −0 bin/pidof
  70. BIN bin/ping
  71. BIN bin/ping6
  72. BIN bin/plymouth
  73. BIN bin/ps
  74. BIN bin/pwd
  75. +1 −0 bin/rbash
  76. BIN bin/readlink
  77. BIN bin/rm
  78. BIN bin/rmdir
  79. +1 −0 bin/rnano
  80. BIN bin/run-parts
  81. BIN bin/sed
  82. BIN bin/setfont
  83. +427 −0 bin/setupcon
  84. +1 −0 bin/sh
  85. +1 −0 bin/sh.distrib
  86. BIN bin/sleep
  87. BIN bin/stty
  88. BIN bin/su
  89. BIN bin/sync
  90. BIN bin/tailf
  91. BIN bin/tar
  92. BIN bin/tempfile
  93. BIN bin/touch
  94. BIN bin/true
  95. BIN bin/umount
  96. BIN bin/uname
  97. +3 −0 bin/uncompress
  98. +100 −0 bin/unicode_start
  99. BIN bin/vdir
  100. +63 −0 bin/which
  101. BIN bin/ypdomainname
  102. +3 −0 bin/zcat
  103. +3 −0 bin/zcmp
  104. +161 −0 bin/zdiff
  105. +3 −0 bin/zegrep
  106. +3 −0 bin/zfgrep
  107. +71 −0 bin/zforce
  108. +209 −0 bin/zgrep
  109. +53 −0 bin/zless
  110. +88 −0 bin/zmore
  111. +183 −0 bin/znew
  112. +45,024 −0 boot/System.map-3.2.0-1artax1-486
  113. +5,973 −0 boot/config-3.2.0-1artax1-486
  114. BIN boot/initrd.img-3.2.0-1artax1-486
  115. BIN boot/vmlinuz-3.2.0-1artax1-486
  116. +7 −0 dev/.udev/db/net:eth0
  117. +1 −0 dev/adsp
  118. +1 −0 dev/amidi
  119. +1 −0 dev/audio
  120. +1 −0 dev/core
  121. +1 −0 dev/dsp
  122. +1 −0 dev/fd
  123. +1 −0 dev/midi
  124. +1 −0 dev/mixer
  125. +1 −0 dev/ram
  126. +1 −0 dev/sequencer2
  127. +1 −0 dev/stderr
  128. +1 −0 dev/stdin
  129. +1 −0 dev/stdout
  130. 0 etc/.pwd.lock
  131. +1 −0 etc/X11/X
  132. +23 −0 etc/X11/Xloadimage
  133. +34 −0 etc/X11/Xreset
  134. +4 −0 etc/X11/Xreset.d/README
  135. +10 −0 etc/X11/Xresources/x11-common
  136. +113 −0 etc/X11/Xsession
  137. +70 −0 etc/X11/Xsession.d/20x11-common_process-args
  138. +26 −0 etc/X11/Xsession.d/30x11-common_xresources
  139. +6 −0 etc/X11/Xsession.d/40x11-common_xsessionrc
  140. +47 −0 etc/X11/Xsession.d/50x11-common_determine-startup
  141. +12 −0 etc/X11/Xsession.d/90unclutter
  142. +24 −0 etc/X11/Xsession.d/90x11-common_ssh-agent
  143. +7 −0 etc/X11/Xsession.d/99x11-common_start
  144. +9 −0 etc/X11/Xsession.options
  145. +1 −0 etc/X11/XvMCConfig
  146. +14 −0 etc/X11/Xwrapper.config
  147. +228 −0 etc/X11/app-defaults/Bitmap
  148. +18 −0 etc/X11/app-defaults/Bitmap-color
  149. +231 −0 etc/X11/app-defaults/Bitmap-nocase
  150. +6 −0 etc/X11/app-defaults/Clock-color
  151. +292 −0 etc/X11/app-defaults/Editres
  152. +91 −0 etc/X11/app-defaults/Editres-color
  153. +50 −0 etc/X11/app-defaults/KOI8RXTerm
  154. +175 −0 etc/X11/app-defaults/KOI8RXTerm-color
  155. +76 −0 etc/X11/app-defaults/UXTerm
  156. +175 −0 etc/X11/app-defaults/UXTerm-color
  157. +95 −0 etc/X11/app-defaults/Viewres
  158. +24 −0 etc/X11/app-defaults/Viewres-color
  159. +530 −0 etc/X11/app-defaults/XCalc
  160. +225 −0 etc/X11/app-defaults/XCalc-color
  161. +126 −0 etc/X11/app-defaults/XClipboard
  162. +1 −0 etc/X11/app-defaults/XClock
  163. +10 −0 etc/X11/app-defaults/XClock-color
  164. +28 −0 etc/X11/app-defaults/XConsole
  165. +148 −0 etc/X11/app-defaults/XFontSel
  166. +6 −0 etc/X11/app-defaults/XLoad
  167. +4 −0 etc/X11/app-defaults/XLogo
  168. +5 −0 etc/X11/app-defaults/XLogo-color
  169. +130 −0 etc/X11/app-defaults/XMore
  170. +119 −0 etc/X11/app-defaults/XSm
  171. +255 −0 etc/X11/app-defaults/XTerm
  172. +175 −0 etc/X11/app-defaults/XTerm-color
  173. +96 −0 etc/X11/app-defaults/Xditview
  174. +25 −0 etc/X11/app-defaults/Xditview-chrtr
  175. +468 −0 etc/X11/app-defaults/Xedit
  176. +195 −0 etc/X11/app-defaults/Xedit-color
  177. +40 −0 etc/X11/app-defaults/Xfd
  178. +2 −0 etc/X11/app-defaults/Xgc
  179. +55 −0 etc/X11/app-defaults/Xgc-color
  180. +27 −0 etc/X11/app-defaults/Xmag
  181. +195 −0 etc/X11/app-defaults/Xman
  182. +6 −0 etc/X11/app-defaults/Xmessage
  183. +44 −0 etc/X11/app-defaults/Xmessage-color
  184. +183 −0 etc/X11/app-defaults/Xvidtune
  185. +36 −0 etc/X11/fonts/100dpi/xfonts-100dpi.alias
  186. +36 −0 etc/X11/fonts/75dpi/xfonts-75dpi.alias
  187. +34 −0 etc/X11/fonts/Type1/xfonts-scalable.scale
  188. +77 −0 etc/X11/fonts/misc/xfonts-base.alias
  189. +754 −0 etc/X11/rgb.txt
  190. +8 −0 etc/X11/xinit/xinitrc
  191. +3 −0 etc/X11/xinit/xserverrc
  192. +2 −0 etc/acpi/events/powerbtn-acpi-support
  193. +33 −0 etc/acpi/powerbtn-acpi-support.sh
  194. +85 −0 etc/adduser.conf
  195. +1 −0 etc/adjtime
  196. +2 −0 etc/alternatives/README
  197. +1 −0 etc/alternatives/aptitude
  198. +1 −0 etc/alternatives/awk
  199. +1 −0 etc/alternatives/awk.1.gz
  200. +1 −0 etc/alternatives/builtins.7.gz
  201. +1 −0 etc/alternatives/cpp
  202. +1 −0 etc/alternatives/dwm
  203. +1 −0 etc/alternatives/editor
  204. +1 −0 etc/alternatives/editor.1.gz
  205. +1 −0 etc/alternatives/ex
  206. +1 −0 etc/alternatives/ex.1.gz
  207. +1 −0 etc/alternatives/ex.fr.1.gz
  208. +1 −0 etc/alternatives/ex.it.1.gz
  209. +1 −0 etc/alternatives/ex.pl.1.gz
  210. +1 −0 etc/alternatives/ex.ru.1.gz
  211. +1 −0 etc/alternatives/flash-mozilla.so
  212. +1 −0 etc/alternatives/from
  213. +1 −0 etc/alternatives/from.1.gz
  214. +1 −0 etc/alternatives/gnome-www-browser
  215. +1 −0 etc/alternatives/gnome-www-browser.1.gz
  216. +1 −0 etc/alternatives/infobrowser
  217. +1 −0 etc/alternatives/infobrowser.1.gz
  218. +1 −0 etc/alternatives/lft
  219. +1 −0 etc/alternatives/lft.1.gz
  220. +1 −0 etc/alternatives/mt
  221. +1 −0 etc/alternatives/mt.1.gz
  222. +1 −0 etc/alternatives/nawk
  223. +1 −0 etc/alternatives/nawk.1.gz
  224. +1 −0 etc/alternatives/nc
  225. +1 −0 etc/alternatives/nc.1.gz
  226. +1 −0 etc/alternatives/netcat
  227. +1 −0 etc/alternatives/netcat.1.gz
  228. +1 −0 etc/alternatives/pager
  229. +1 −0 etc/alternatives/pager.1.gz
  230. +1 −0 etc/alternatives/pico
  231. +1 −0 etc/alternatives/pico.1.gz
  232. +1 −0 etc/alternatives/rename
  233. +1 −0 etc/alternatives/rename.1.gz
  234. +1 −0 etc/alternatives/rmt
  235. +1 −0 etc/alternatives/rmt.8.gz
  236. +1 −0 etc/alternatives/rview
  237. +1 −0 etc/alternatives/tcptraceroute
  238. +1 −0 etc/alternatives/tcptraceroute.8.gz
  239. +1 −0 etc/alternatives/traceproto
  240. +1 −0 etc/alternatives/traceproto.1.gz
  241. +1 −0 etc/alternatives/traceroute
  242. +1 −0 etc/alternatives/traceroute.1.gz
  243. +1 −0 etc/alternatives/traceroute.sbin
  244. +1 −0 etc/alternatives/traceroute6
  245. +1 −0 etc/alternatives/traceroute6.1.gz
  246. +1 −0 etc/alternatives/vi
  247. +1 −0 etc/alternatives/vi.1.gz
  248. +1 −0 etc/alternatives/vi.fr.1.gz
  249. +1 −0 etc/alternatives/vi.it.1.gz
  250. +1 −0 etc/alternatives/vi.pl.1.gz
  251. +1 −0 etc/alternatives/vi.ru.1.gz
  252. +1 −0 etc/alternatives/view
  253. +1 −0 etc/alternatives/view.1.gz
  254. +1 −0 etc/alternatives/view.fr.1.gz
  255. +1 −0 etc/alternatives/view.it.1.gz
  256. +1 −0 etc/alternatives/view.pl.1.gz
  257. +1 −0 etc/alternatives/view.ru.1.gz
  258. +1 −0 etc/alternatives/w
  259. +1 −0 etc/alternatives/w.1.gz
  260. +1 −0 etc/alternatives/write
  261. +1 −0 etc/alternatives/write.1.gz
  262. +1 −0 etc/alternatives/x-terminal-emulator
  263. +1 −0 etc/alternatives/x-terminal-emulator.1.gz
  264. +1 −0 etc/alternatives/x-window-manager
  265. +1 −0 etc/alternatives/x-window-manager.1.gz
  266. +1 −0 etc/alternatives/x-www-browser
  267. +1 −0 etc/alternatives/x-www-browser.1.gz
  268. +1 −0 etc/apm/resume.d/20alsa
  269. +11 −0 etc/apm/scripts.d/alsa
  270. +1 −0 etc/apm/suspend.d/80alsa
  271. +2 −0 etc/apt/apt.conf.d/00recommends
  272. +24 −0 etc/apt/apt.conf.d/01autoremove
  273. +3 −0 etc/apt/apt.conf.d/70debconf
  274. +23 −0 etc/apt/preferences
  275. +16 −0 etc/apt/preferences.d/progress.pref
  276. 0 etc/apt/secring.gpg
  277. +1 −0 etc/apt/sources.list.d/artax-backports.list
  278. +1 −0 etc/apt/sources.list.d/artax-restricted.list
  279. +3 −0 etc/apt/sources.list.d/debian.list
  280. +1 −0 etc/apt/sources.list.d/packages.list
  281. +4 −0 etc/apt/sources.list.d/progress.list
  282. +1 −0 etc/apt/sources.list.d/squeeze.list
  283. +2 −0 etc/apt/sources.list.d/webc.list
  284. +1 −0 etc/apt/sources.list.d/zz-sources.list
  285. BIN etc/apt/trustdb.gpg
  286. BIN etc/apt/trusted.gpg
  287. +50 −0 etc/bash.bashrc
  288. +12 −0 etc/bash_completion.d/debconf
  289. +26 −0 etc/bash_completion.d/initramfs-tools
  290. +36 −0 etc/bash_completion.d/insserv
  291. +13 −0 etc/bindresvport.blacklist
  292. +151 −0 etc/ca-certificates.conf
  293. +15 −0 etc/calendar/default
  294. BIN etc/console-setup/Uni2-Fixed16.psf.gz
  295. BIN etc/console-setup/cached.kmap.gz
  296. +1 −0 etc/console-setup/compose.ARMSCII-8.inc
  297. +1 −0 etc/console-setup/compose.CP1251.inc
  298. +1 −0 etc/console-setup/compose.CP1255.inc
  299. +1 −0 etc/console-setup/compose.CP1256.inc
  300. +1 −0 etc/console-setup/compose.GEORGIAN-ACADEMY.inc
Sorry, we could not display the entire diff because too many files (22,689) changed.
BIN bin/bash
Binary file not shown.
BIN bin/bunzip2
Binary file not shown.
BIN bin/busybox
Binary file not shown.
BIN bin/bzcat
Binary file not shown.
1 bin/bzcmp
76 bin/bzdiff
@@ -0,0 +1,76 @@
+#!/bin/sh
+# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
+
+# Bzcmp/diff wrapped for bzip2,
+# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
+
+# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
+# gram on compressed files. All options specified are passed
+# directly to cmp or diff. If only 1 file is specified, then
+# the files compared are file1 and an uncompressed file1.gz.
+# If two files are specified, then they are uncompressed (if
+# necessary) and fed to cmp or diff. The exit status from cmp
+# or diff is preserved.
+
+PATH="/usr/bin:/bin:$PATH"; export PATH
+prog=`echo $0 | sed 's|.*/||'`
+case "$prog" in
+ *cmp) comp=${CMP-cmp} ;;
+ *) comp=${DIFF-diff} ;;
+esac
+
+OPTIONS=
+FILES=
+for ARG
+do
+ case "$ARG" in
+ -*) OPTIONS="$OPTIONS $ARG";;
+ *) if test -f "$ARG"; then
+ FILES="$FILES $ARG"
+ else
+ echo "${prog}: $ARG not found or not a regular file"
+ exit 1
+ fi ;;
+ esac
+done
+if test -z "$FILES"; then
+ echo "Usage: $prog [${comp}_options] file [file]"
+ exit 1
+fi
+set $FILES
+if test $# -eq 1; then
+ FILE=`echo "$1" | sed 's/.bz2$//'`
+ bzip2 -cd "$FILE.bz2" | $comp $OPTIONS - "$FILE"
+ STAT="$?"
+
+elif test $# -eq 2; then
+ case "$1" in
+ *.bz2)
+ case "$2" in
+ *.bz2)
+ F=`echo "$2" | sed 's|.*/||;s|.bz2$||'`
+ tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX` || {
+ echo 'cannot create a temporary file' >&2
+ exit 1
+ }
+ bzip2 -cdfq "$2" > "$tmp"
+ bzip2 -cdfq "$1" | $comp $OPTIONS - "$tmp"
+ STAT="$?"
+ /bin/rm -f "$tmp";;
+
+ *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2"
+ STAT="$?";;
+ esac;;
+ *) case "$2" in
+ *.bz2)
+ bzip2 -cdfq "$2" | $comp $OPTIONS "$1" -
+ STAT="$?";;
+ *) $comp $OPTIONS "$1" "$2"
+ STAT="$?";;
+ esac;;
+ esac
+else
+ echo "Usage: $prog [${comp}_options] file [file]"
+ exit 1
+fi
+exit "$STAT"
1 bin/bzegrep
182 bin/bzexe
@@ -0,0 +1,182 @@
+#!/bin/sh
+# gzexe: compressor for Unix executables.
+# Use this only for binaries that you do not use frequently.
+#
+# The compressed version is a shell script which decompresses itself after
+# skipping $skip lines of shell commands. We try invoking the compressed
+# executable with the original name (for programs looking at their name).
+# We also try to retain the original file permissions on the compressed file.
+# For safety reasons, gzexe will not create setuid or setgid shell scripts.
+
+# WARNING: the first line of this file must be either : or #!/bin/sh
+# The : is required for some old versions of csh.
+# On Ultrix, /bin/sh is too buggy, change the first line to: #!/bin/sh5
+
+
+# Copyright (C) 1998, 2002 Free Software Foundation
+# Copyright (C) 1993 Jean-loup Gailly
+
+# 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, 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+
+PATH="/usr/bin:$PATH"
+x=`basename $0`
+if test $# = 0; then
+ echo compress executables. original file foo is renamed to foo~
+ echo usage: ${x} [-d] files...
+ echo " -d decompress the executables"
+ exit 1
+fi
+
+set -C
+tmp=gz$$
+trap "rm -f $tmp; exit 1" HUP INT QUIT TRAP USR1 PIPE TERM
+: > $tmp || exit 1
+
+decomp=0
+res=0
+test "$x" = "ungzexe" && decomp=1
+if test "x$1" = "x-d"; then
+ decomp=1
+ shift
+fi
+
+echo hi > zfoo1$$ || exit 1
+echo hi > zfoo2$$ || exit 1
+if test -z "`(${CPMOD-cpmod} zfoo1$$ zfoo2$$) 2>&1`"; then
+ cpmod=${CPMOD-cpmod}
+fi
+rm -f zfoo[12]$$
+
+tail=""
+IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
+for dir in $PATH; do
+ test -z "$dir" && dir=.
+ if test -f $dir/tail; then
+ tail="$dir/tail"
+ break
+ fi
+done
+IFS="$saveifs"
+if test -z "$tail"; then
+ echo cannot find tail
+ exit 1
+fi
+case `echo foo | $tail -n +1 2>/dev/null` in
+foo) tail="$tail -n";;
+esac
+
+for i do
+ if test ! -f "$i" ; then
+ echo ${x}: $i not a file
+ res=1
+ continue
+ fi
+ if test $decomp -eq 0; then
+ if sed -e 1d -e 2q "$i" | grep "^skip=[0-9]*$" >/dev/null; then
+ echo "${x}: $i is already gzexe'd"
+ continue
+ fi
+ fi
+ if ls -l "$i" | grep '^...[sS]' > /dev/null; then
+ echo "${x}: $i has setuid permission, unchanged"
+ continue
+ fi
+ if ls -l "$i" | grep '^......[sS]' > /dev/null; then
+ echo "${x}: $i has setgid permission, unchanged"
+ continue
+ fi
+ case "`basename $i`" in
+ bzip2 | tail | sed | chmod | ln | sleep | rm)
+ echo "${x}: $i would depend on itself"; continue ;;
+ esac
+ if test -z "$cpmod"; then
+ cp -p "$i" $tmp 2>/dev/null || cp "$i" $tmp
+ if test -w $tmp 2>/dev/null; then
+ writable=1
+ else
+ writable=0
+ chmod u+w $tmp 2>/dev/null
+ fi
+ : >| $tmp # truncate the file, ignoring set -C
+ fi
+ if test $decomp -eq 0; then
+ sed 1q $0 >> $tmp
+ sed "s|^if tail|if $tail|" >> $tmp <<'EOF'
+skip=23
+set -C
+umask=`umask`
+umask 77
+tmpfile=`tempfile -p gztmp -d /tmp` || exit 1
+if tail +$skip "$0" | /bin/bzip2 -cd >> $tmpfile; then
+ umask $umask
+ /bin/chmod 700 $tmpfile
+ prog="`echo $0 | /bin/sed 's|^.*/||'`"
+ if /bin/ln -T $tmpfile "/tmp/$prog" 2>/dev/null; then
+ trap '/bin/rm -f $tmpfile "/tmp/$prog"; exit $res' 0
+ (/bin/sleep 5; /bin/rm -f $tmpfile "/tmp/$prog") 2>/dev/null &
+ /tmp/"$prog" ${1+"$@"}; res=$?
+ else
+ trap '/bin/rm -f $tmpfile; exit $res' 0
+ (/bin/sleep 5; /bin/rm -f $tmpfile) 2>/dev/null &
+ $tmpfile ${1+"$@"}; res=$?
+ fi
+else
+ echo Cannot decompress $0; exit 1
+fi; exit $res
+EOF
+ bzip2 -cv9 "$i" >> $tmp || {
+ /bin/rm -f $tmp
+ echo ${x}: compression not possible for $i, file unchanged.
+ res=1
+ continue
+ }
+
+ else
+ # decompression
+ skip=23
+ if sed -e 1d -e 2q "$i" | grep "^skip=[0-9]*$" >/dev/null; then
+ eval `sed -e 1d -e 2q "$i"`
+ fi
+ if tail +$skip "$i" | bzip2 -cd > $tmp; then
+ :
+ else
+ echo ${x}: $i probably not in gzexe format, file unchanged.
+ res=1
+ continue
+ fi
+ fi
+ rm -f "$i~"
+ mv "$i" "$i~" || {
+ echo ${x}: cannot backup $i as $i~
+ rm -f $tmp
+ res=1
+ continue
+ }
+ mv $tmp "$i" || cp -p $tmp "$i" 2>/dev/null || cp $tmp "$i" || {
+ echo ${x}: cannot create $i
+ rm -f $tmp
+ res=1
+ continue
+ }
+ rm -f $tmp
+ if test -n "$cpmod"; then
+ $cpmod "$i~" "$i" 2>/dev/null
+ elif test $writable -eq 0; then
+ chmod u-w $i 2>/dev/null
+ fi
+done
+exit $res
1 bin/bzfgrep
132 bin/bzgrep
@@ -0,0 +1,132 @@
+#!/bin/sh
+
+# bzgrep -- a wrapper around a grep program that decompresses files as needed
+# Adapted from zgrep of the Debian gzip package by Anibal Monsalve Salazar.
+# Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
+
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation
+# Copyright (C) 1993 Jean-loup Gailly
+
+# 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, 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+PATH="/usr/bin:$PATH"; export PATH
+
+prog=`echo "$0" | sed 's|.*/||'`
+case "$prog" in
+ *egrep) grep=${EGREP-egrep} ;;
+ *fgrep) grep=${FGREP-fgrep} ;;
+ *) grep=${GREP-grep} ;;
+esac
+
+pat=""
+after_dash_dash=""
+files_with_matches=0
+files_without_matches=0
+no_filename=0
+with_filename=0
+
+while test $# -ne 0; do
+ case "$after_dash_dash$1" in
+ --d* | --rec*) echo >&2 "$0: $1: option not supported"; exit 2;;
+ --files-with-*) files_with_matches=1;;
+ --files-witho*) files_without_matches=1;;
+ --no-f*) no_filename=1;;
+ --wi*) with_filename=1;;
+ --*) ;;
+ -*)
+ case "$1" in
+ -*[dr]*) echo >&2 "$0: $1: option not supported"; exit 2;;
+ esac
+ case "$1" in
+ -*H*) with_filename=1;;
+ esac
+ case "$1" in
+ -*h*) no_filename=1;;
+ esac
+ case "$1" in
+ -*L*) files_without_matches=1;;
+ esac
+ case "$1" in
+ -*l*) files_with_matches=1;;
+ esac;;
+ esac
+ case "$after_dash_dash$1" in
+ -[ef]) opt="$opt $1"; shift; pat="$1"
+ if test "$grep" = grep; then # grep is buggy with -e on SVR4
+ grep=egrep
+ fi;;
+ -[ABCdm])opt="$opt $1 $2"; shift;;
+ --) opt="$opt $1"; after_dash_dash=1;;
+ -*) opt="$opt $1";;
+ *) if test -z "$pat"; then
+ pat="$1"
+ else
+ break;
+ fi;;
+ esac
+ shift
+done
+
+if test -z "$pat"; then
+ echo "grep through bzip2 files"
+ echo "usage: $prog [grep_options] pattern [files]"
+ exit 2
+fi
+
+if test $# -eq 0; then
+ bzip2 -cdfq | $grep $opt "$pat"
+ exit $?
+fi
+
+res=0
+for i do
+ bzip2 -cdfq -- "$i" |
+ if test $files_with_matches -eq 1; then
+ $grep $opt "$pat" > /dev/null && printf "%s\n" "$i"
+ elif test $files_without_matches -eq 1; then
+ $grep $opt "$pat" > /dev/null || printf "%s\n" "$i"
+ elif test $with_filename -eq 0 && { test $# -eq 1 || test $no_filename -eq 1; }; then
+ $grep $opt "$pat"
+ else
+ i=$(echo "$i" | sed -e 's/[\\|&]/\\&/g')
+ if test $with_filename -eq 1; then
+ sed_script="s|^[^:]*:|${i}:|"
+ else
+ sed_script="s|^|${i}:|"
+ fi
+ # Hack adapted from GPLed code at
+ # http://home.comcast.net/~j.p.h/cus-faq-2
+ # Has the same effect as the following two lines of bash:
+ #
+ # $grep $opt "$pat" | sed "$sed_script"
+ # exit ${PIPESTATUS[0]}
+ #
+ # Inside the `...`, fd4 goes to the pipe whose other end is read
+ # and passed to eval; fd1 is the normal standard output
+ # preserved the line before with exec 3>&1
+ exec 3>&1
+ eval `
+ exec 4>&1 >&3 3>&-
+ {
+ $grep $opt "$pat" 4>&-; echo "r=$?;" >&4
+ } | sed "$sed_script"
+ `
+ exit $r
+ fi
+ r=$?
+ test $res -lt $r && res=$r
+done
+exit $res
BIN bin/bzip2
Binary file not shown.
BIN bin/bzip2recover
Binary file not shown.
1 bin/bzless
61 bin/bzmore
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Bzmore wrapped for bzip2,
+# adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
+
+PATH="/usr/bin:$PATH"; export PATH
+
+prog=`echo $0 | sed 's|.*/||'`
+case "$prog" in
+ *less) more=less ;;
+ *) more=more ;;
+esac
+
+if test "`echo -n a`" = "-n a"; then
+ # looks like a SysV system:
+ n1=''; n2='\c'
+else
+ n1='-n'; n2=''
+fi
+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 INT QUIT TRAP USR1 PIPE TERM
+else
+ trap 'stty $ncb echo 2>/dev/null; exit' 0 INT QUIT TRAP USR1 PIPE TERM
+fi
+
+if test $# = 0; then
+ if test -t 0; then
+ echo usage: $prog files...
+ else
+ bzip2 -cdfq | eval $more
+ fi
+else
+ FIRST=1
+ for FILE
+ do
+ if test $FIRST -eq 0; then
+ echo $n1 "--More--(Next file: $FILE)$n2"
+ stty $cb -echo 2>/dev/null
+ ANS=`dd bs=1 count=1 2>/dev/null`
+ stty $ncb echo 2>/dev/null
+ echo " "
+ if test "$ANS" = 'e' || test "$ANS" = 'q'; then
+ exit
+ fi
+ fi
+ if test "$ANS" != 's'; then
+ echo "------> $FILE <------"
+ bzip2 -cdfq "$FILE" | eval $more
+ fi
+ if test -t; then
+ FIRST=0
+ fi
+ done
+fi
BIN bin/cat
Binary file not shown.
BIN bin/chgrp
Binary file not shown.
BIN bin/chmod
Binary file not shown.
BIN bin/chown
Binary file not shown.
BIN bin/chvt
Binary file not shown.
BIN bin/cp
Binary file not shown.
BIN bin/cpio
Binary file not shown.
BIN bin/dash
Binary file not shown.
BIN bin/date
Binary file not shown.
BIN bin/dd
Binary file not shown.
BIN bin/df
Binary file not shown.
BIN bin/dir
Binary file not shown.
BIN bin/dmesg
Binary file not shown.
BIN bin/dnsdomainname
Binary file not shown.
BIN bin/domainname
Binary file not shown.
BIN bin/dumpkeys
Binary file not shown.
BIN bin/echo
Binary file not shown.
BIN bin/egrep
Binary file not shown.
BIN bin/false
Binary file not shown.
BIN bin/fgconsole
Binary file not shown.
BIN bin/fgrep
Binary file not shown.
BIN bin/findmnt
Binary file not shown.
BIN bin/grep
Binary file not shown.
3 bin/gunzip
@@ -0,0 +1,3 @@
+#!/bin/bash
+PATH=${GZIP_BINDIR-'/bin'}:$PATH
+exec gzip -d "$@"
229 bin/gzexe
@@ -0,0 +1,229 @@
+#!/bin/bash
+# gzexe: compressor for Unix executables.
+# Use this only for binaries that you do not use frequently.
+#
+# The compressed version is a shell script which decompresses itself after
+# skipping $skip lines of shell commands. We try invoking the compressed
+# executable with the original name (for programs looking at their name).
+# We also try to retain the original file permissions on the compressed file.
+# For safety reasons, gzexe will not create setuid or setgid shell scripts.
+
+# WARNING: the first line of this file must be either : or #!/bin/bash
+# The : is required for some old versions of csh.
+# On Ultrix, /bin/bash is too buggy, change the first line to: #!/bin/bash5
+
+
+# Copyright (C) 1998, 2002, 2004, 2006, 2007 Free Software Foundation
+# Copyright (C) 1993 Jean-loup Gailly
+
+# 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, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+tab=' '
+nl='
+'
+IFS=" $tab$nl"
+
+version='gzexe (gzip) 1.3.12
+Copyright (C) 2007 Free Software Foundation, Inc.
+This is free software. You may redistribute copies of it under the terms of
+the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
+There is NO WARRANTY, to the extent permitted by law.
+
+Written by Jean-loup Gailly.'
+
+usage="Usage: $0 [OPTION] FILE...
+Rename each FILE with a compressed version of itself, renaming FILE to FILE~.
+
+ -d Decompress each FILE instead of compressing it.
+ --help display this help and exit
+ --version output version information and exit
+
+Report bugs to <bug-gzip@gnu.org>."
+
+
+PATH="${GZIP_BINDIR-'/bin'}:$PATH"
+
+decomp=0
+res=0
+while :; do
+ case $1 in
+ -d) decomp=1; shift;;
+ --h*) exec echo "$usage";;
+ --v*) exec echo "$version";;
+ --) shift; break;;
+ *) break;;
+ esac
+done
+
+if test $# -eq 0; then
+ echo >&2 "$0: missing operand
+Try \`$0 --help' for more information."
+ exit 1
+fi
+
+tmp=
+trap 'res=$?
+ test -n "$tmp" && rm -f "$tmp"
+ (exit $res); exit $res
+' 0 1 2 3 5 10 13 15
+
+mktemp_status=
+
+for i do
+ case $i in
+ -*) file=./$i;;
+ *) file=$i;;
+ esac
+ if test ! -f "$file" || test ! -r "$file"; then
+ res=$?
+ echo >&2 "$0: $i is not a readable regular file"
+ continue
+ fi
+ if test $decomp -eq 0; then
+ if sed -e 1d -e 2q "$file" | grep "^skip=[0-9][0-9]*$" >/dev/null; then
+ echo >&2 "$0: $i is already gzexe'd"
+ continue
+ fi
+ fi
+ if test -u "$file"; then
+ echo >&2 "$0: $i has setuid permission, unchanged"
+ continue
+ fi
+ if test -g "$file"; then
+ echo >&2 "$0: $i has setgid permission, unchanged"
+ continue
+ fi
+ case /$file in
+ */basename | */bash | */cat | */chmod | */cp | \
+ */dirname | */echo | */expr | */gzip | \
+ */ln | */mkdir | */mktemp | */mv | */rm | \
+ */sed | */sh | */sleep | */test | */tail)
+ echo >&2 "$0: $i might depend on itself"; continue;;
+ esac
+
+ dir=`dirname "$file"` || dir=$TMPDIR
+ test -d "$dir" && test -w "$dir" && test -x "$dir" || dir=/tmp
+ test -n "$tmp" && rm -f "$tmp"
+ if test -z "$mktemp_status"; then
+ type mktemp >/dev/null 2>&1
+ mktemp_status=$?
+ fi
+ if test $mktemp_status -eq 0; then
+ tmp=`TMPDIR=$dir mktemp -t gzexeXXXXXX`
+ else
+ tmp=$dir/gzexe$$
+ fi && { cp -p "$file" "$tmp" 2>/dev/null || cp "$file" "$tmp"; } || {
+ res=$?
+ echo >&2 "$0: cannot copy $file"
+ continue
+ }
+ if test -w "$tmp"; then
+ writable=1
+ else
+ writable=0
+ chmod u+w "$tmp" || {
+ res=$?
+ echo >&2 "$0: cannot chmod $tmp"
+ continue
+ }
+ fi
+ if test $decomp -eq 0; then
+ (cat <<'EOF' &&
+#!/bin/bash
+skip=44
+
+tab=' '
+nl='
+'
+IFS=" $tab$nl"
+
+umask=`umask`
+umask 77
+
+gztmpdir=
+trap 'res=$?
+ test -n "$gztmpdir" && rm -fr "$gztmpdir"
+ (exit $res); exit $res
+' 0 1 2 3 5 10 13 15
+
+if type mktemp >/dev/null 2>&1; then
+ gztmpdir=`mktemp -dt`
+else
+ gztmpdir=/tmp/gztmp$$; mkdir $gztmpdir
+fi || { (exit 127); exit 127; }
+
+gztmp=$gztmpdir/$0
+case $0 in
+-* | */*'
+') mkdir -p "$gztmp" && rm -r "$gztmp";;
+*/*) gztmp=$gztmpdir/`basename "$0"`;;
+esac || { (exit 127); exit 127; }
+
+case `echo X | tail -n +1 2>/dev/null` in
+X) tail_n=-n;;
+*) tail_n=;;
+esac
+if tail $tail_n +$skip <"$0" | gzip -cd > "$gztmp"; then
+ umask $umask
+ chmod 700 "$gztmp"
+ (sleep 5; rm -fr "$gztmpdir") 2>/dev/null &
+ "$gztmp" ${1+"$@"}; res=$?
+else
+ echo >&2 "Cannot decompress $0"
+ (exit 127); res=127
+fi; exit $res
+EOF
+ gzip -cv9 "$file") > "$tmp" || {
+ res=$?
+ echo >&2 "$0: compression not possible for $i, file unchanged."
+ continue
+ }
+
+ else
+ # decompression
+ skip=44
+ skip_line=`sed -e 1d -e 2q "$file"`
+ case $skip_line in
+ skip=[0-9] | skip=[0-9][0-9] | skip=[0-9][0-9][0-9])
+ eval "$skip_line";;
+ esac
+ case `echo X | tail -n +1 2>/dev/null` in
+ X) tail_n=-n;;
+ *) tail_n=;;
+ esac
+ tail $tail_n +$skip "$file" | gzip -cd > "$tmp" || {
+ res=$?
+ echo >&2 "$0: $i probably not in gzexe format, file unchanged."
+ continue
+ }
+ fi
+ test $writable -eq 1 || chmod u-w "$tmp" || {
+ res=$?
+ echo >&2 "$0: $tmp: cannot chmod"
+ continue
+ }
+ ln -f "$file" "$file~" || {
+ res=$?
+ echo >&2 "$0: cannot backup $i as $i~"
+ continue
+ }
+ mv -f "$tmp" "$file" || {
+ res=$?
+ echo >&2 "$0: cannot rename $tmp to $i"
+ continue
+ }
+ tmp=
+done
+(exit $res); exit $res
BIN bin/gzip
Binary file not shown.
BIN bin/hostname
Binary file not shown.
BIN bin/ip
Binary file not shown.
BIN bin/kbd_mode
Binary file not shown.
BIN bin/kill
Binary file not shown.
49 bin/live-system
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+# Redirect stdout to stderr
+exec 1>&2
+
+case "${1}" in
+ -h|--help|-u|--usage)
+ echo "live-system - determine if running system is a live system"
+ echo
+ echo "Usage: ${0} [-v|--verbose]"
+
+ exit 2
+ ;;
+
+ -v|--verbose)
+ _VERBOSE="true"
+ ;;
+esac
+
+[ "${_VERBOSE}" ] && echo -n "Checking for live-system... "
+
+if [ ! -e /proc/cmdline ]
+then
+ echo "E: /proc/cmdline - No such file."
+ exit 2
+fi
+
+if grep -qs boot=live /proc/cmdline
+then
+ [ "${_VERBOSE}" ] && echo -n " yes, this is a live system"
+
+ if [ -d /live/image/install ]
+ then
+ if ls /live/image/install/pool/main/l/live-installer/live-installer_*.udeb > /dev/null 2>&1
+ then
+ [ "${_VERBOSE}" ] && echo " with live-installer support."
+ else
+ [ "${_VERBOSE}" ] && echo " without live-installer support."
+ fi
+ else
+ [ "${_VERBOSE}" ] && echo "without installer support."
+ fi
+
+ exit 0
+else
+ [ "${_VERBOSE}" ] && echo " no, this is not a live system."
+
+ exit 1
+fi
BIN bin/ln
Binary file not shown.
BIN bin/loadkeys
Binary file not shown.
BIN bin/login
Binary file not shown.
BIN bin/ls
Binary file not shown.
BIN bin/lsblk
Binary file not shown.
BIN bin/lsmod
Binary file not shown.
BIN bin/mkdir
Binary file not shown.
BIN bin/mknod
Binary file not shown.
BIN bin/mktemp
Binary file not shown.
BIN bin/more
Binary file not shown.
BIN bin/mount
Binary file not shown.
BIN bin/mountpoint
Binary file not shown.
1 bin/mt
BIN bin/mt-gnu
Binary file not shown.
BIN bin/mv
Binary file not shown.
BIN bin/nano
Binary file not shown.
1 bin/nc
BIN bin/nc.traditional
Binary file not shown.
1 bin/netcat
BIN bin/netstat
Binary file not shown.
BIN bin/nisdomainname
Binary file not shown.
1 bin/open
BIN bin/openvt
Binary file not shown.
1 bin/pidof
BIN bin/ping
Binary file not shown.
BIN bin/ping6
Binary file not shown.
BIN bin/plymouth
Binary file not shown.
BIN bin/ps
Binary file not shown.
BIN bin/pwd
Binary file not shown.
1 bin/rbash
BIN bin/readlink
Binary file not shown.
BIN bin/rm
Binary file not shown.
BIN bin/rmdir
Binary file not shown.
1 bin/rnano
BIN bin/run-parts
Binary file not shown.
BIN bin/sed
Binary file not shown.
BIN bin/setfont
Binary file not shown.
427 bin/setupcon
@@ -0,0 +1,427 @@
+#!/bin/sh
+
+# setupcon -- setup the font and keyboard on the Linux console
+# Copyright © 1999,2000,2001,2002,2003,2006 Anton Zinoviev
+
+# 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.
+
+# If you have not received a copy of the GNU General Public License
+# along with this program, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+###########################################################################
+
+
+# The same as /usr/bin/which - in order to make "which" available before
+# /usr is mounted
+which () {
+ local IFS
+ IFS=:
+ for i in $PATH; do
+ if [ -x "$i/$1" ]; then
+ echo "$i/$1"
+ return 0
+ fi
+ done
+ return 1
+}
+
+while [ "$1" ]; do
+ case "$1" in
+ -k|--keyboard-only)
+ keyboard_only=yes
+ ;;
+ -f|--font-only)
+ font_only=yes
+ ;;
+ -v|--verbose)
+ verbose_option=yes
+ ;;
+ --force)
+ force=yes
+ ;;
+ --save)
+ save=yes
+ ;;
+ --save-only)
+ force=yes
+ save=yes
+ save_only=yes
+ ;;
+ -h|--help)
+ cat >&2 <<EOF
+Usage: setupcon [OPTION] [VARIANT]
+Sets up the font and the keyboard on Linux console.
+
+ -k, --keyboard-only setup the keyboard only, do not setup the font
+ -f, --font-only setup the font only, do not setup the keyboard
+ --force do not check whether we are on the console
+ -v, --verbose explain what is being doing, try it if s.t. goes wrong
+ --save copy the font and the console map in /etc/console-setup,
+ update /etc/console-setup/cached.kmap.gz
+ --save-only only save; don't setup keyboard/font immediately
+ (implies --force)
+ -h, --help display this help and exit
+
+If VARIANT is not specified setupcon looks for the configuration files
+(in this order) ~/.console-setup and if this doesn't exist then the
+combination/etc/default/keyboard + /etc/default/console-setup. When
+a VARIANT is specified then setupcon looks for the configuration files
+~/.console-setup.VARIANT and /etc/default/console-setup.VARIANT.
+EOF
+ exit 0
+ ;;
+ -*)
+ echo "setupcon: Unrecognised option $1" >&2
+ exit 1
+ ;;
+ *)
+ if [ -z "$VARIANT" ]; then
+ VARIANT="$1"
+ else
+ echo "setupcon: Two variants specified: $VARIANT and $1" >&2
+ exit 1
+ fi
+ ;;
+ esac
+ shift
+done
+
+if [ "$VARIANT" ]; then
+ USER_CONFIG=${HOME}/.console-setup."$VARIANT"
+ MAIN_CONFIG=/etc/default/keyboard."$VARIANT"
+ MAIN_CONFIG2=/etc/default/console-setup."$VARIANT"
+else
+ USER_CONFIG=${HOME}/.console-setup
+ MAIN_CONFIG=/etc/default/keyboard
+ MAIN_CONFIG2=/etc/default/console-setup
+fi
+
+if [ -f "$USER_CONFIG" ]; then
+ CONFIG="$USER_CONFIG"
+ CONFIG2=''
+ save=
+elif [ -f "$MAIN_CONFIG" ]; then
+ CONFIG="$MAIN_CONFIG"
+ CONFIG2="$MAIN_CONFIG2"
+else
+ echo "setupcon: None of $MAIN_CONFIG nor $USER_CONFIG exists." >&2
+ exit 1
+fi
+
+if [ "$CONFIG2" -a -f "$CONFIG2" ]; then
+ . "$CONFIG2"
+fi
+. "$CONFIG"
+
+if [ "$verbose_option" = yes ]; then
+ VERBOSE_OUTPUT=yes
+fi
+if [ "$VERBOSE_OUTPUT" = yes ]; then
+ verbose=''
+else
+ verbose='>/dev/null 2>&1'
+fi
+
+if which ckbcomp-mini >/dev/null; then
+ CHARMAP=UTF-8
+ if [ "$VERBOSE_OUTPUT" = yes -a "$CHARMAP" != UTF-8 ]; then
+ echo Only UTF-8 is supported by console-setup-mini
+ fi
+fi
+
+if [ "$force" != yes ]; then
+ case `readlink /proc/self/fd/2` in
+ /dev/tty[0-9]*|/dev/vc/[0-9]*|/dev/console)
+ ;;
+ *)
+ echo We are not on the Linux console, the console is left unconfigured.
+ exit 0
+ ;;
+ esac
+fi
+
+ACTIVE_CONSOLES=${ACTIVE_CONSOLES:-/dev/tty[1-6]}
+CHARMAP=${CHARMAP:-UTF-8}
+CODESET=${CODESET:-Uni2}
+CONSOLE_MAP=${CONSOLE_MAP:-$ACM}
+
+#-----------------------#
+# OUTPUT #
+#-----------------------#
+
+if [ "$keyboard_only" != yes ] && [ "$ACTIVE_CONSOLES" ]; then
+ # Setup unicode/non-unicode mode
+ if [ "$save_only" != yes ]; then
+ for console in $ACTIVE_CONSOLES; do
+ [ -w $console ] || continue
+ if \
+ [ "$CHARMAP" = UTF-8 ] || [ -z "$CONSOLE_MAP$CHARMAP" ]
+ then
+ printf '\033%%G' >$console
+ else
+ printf '\033%%@' >$console
+ fi
+ done
+ fi
+
+ # Load the font
+ if [ -z "$FONT" ]; then
+ FONT_MAP=''
+ if which ckbcomp-mini >/dev/null; then
+ FONT=$(echo `ls /usr/share/consolefonts/$CODESET-*.psf* \
+ /etc/console-setup/$CODESET-*.psf* 2>/dev/null`)
+ FONT=${FONT%% *}
+ if [ "$FONTFACE" ] || [ "$FONTSIZE" ]; then
+ eval echo setupcon: Warning: ignoring the FONTFACE and FONTSIZE specifications! $verbose
+ fi
+ elif [ "$FONTFACE" ] && [ "$FONTSIZE" ]; then
+ FONT="$CODESET-$FONTFACE$FONTSIZE.psf.gz"
+ case "$FONTSIZE" in
+ *x*)
+ bigfont=yes
+ ;;
+ *)
+ bigfont=no
+ ;;
+ esac
+ fi
+ fi
+ LOADFONTS=''
+ for f in $FONT; do
+ if [ -f "$f" ]; then
+ LOADFONTS="$LOADFONTS $f"
+ else
+ for dir in \
+ /usr/local/share/consolefonts \
+ /usr/share/consolefonts \
+ /etc/console-setup \
+ FONT_IS_MISSING
+ do
+ if [ -f "$dir/${f##*/}" ]; then
+ LOADFONTS="$LOADFONTS $dir/${f##*/}"
+ break
+ fi
+ if [ "$dir" = FONT_IS_MISSING ]; then
+ echo setupcon: Warning: the font ${f##*/} does not exist! >&2
+ fi
+ done
+ fi
+ done
+ LOADFONT_MAP=''
+ for f in $FONT_MAP; do
+ [ -z "$LOADFONT_MAP" ] || break # only one unicode map
+ if [ -f "$f" ]; then
+ LOADFONT_MAP="$LOADFONT_MAP $f"
+ else
+ for dir in \
+ /usr/local/share/consoletrans \
+ /usr/share/consoletrans \
+ /etc/console-setup \
+ FONT_MAP_IS_MISSING
+ do
+ if [ -f "$dir/${f##*/}" ]; then
+ LOADFONT_MAP="$LOADFONT_MAP $dir/${f##*/}"
+ break
+ fi
+ if [ "$dir" = FONT_MAP_IS_MISSING ]; then
+ echo setupcon: Warning: the unicode map ${f##*/} does not exist! >&2
+ fi
+ done
+ fi
+ done
+
+ for f in $LOADFONTS; do
+ if \
+ [ "$save" = yes ] \
+ && [ "${f%/*}" != /etc/console-setup ]
+ then
+ cp "$f" /etc/console-setup/
+ fi
+ done
+ for f in $LOADFONT_MAP; do
+ if \
+ [ "$save" = yes ] \
+ && [ "${f%/*}" != /etc/console-setup ]
+ then
+ cp "$f" /etc/console-setup/
+ fi
+ done
+
+ # Due to bug in splashy and usplash: do not load fonts (#540314)
+ if \
+ pidof splashy > /dev/null \
+ || pidof usplash > /dev/null
+ then
+ LOADFONTS=''
+ fi
+
+ if [ "$save_only" != yes ] && [ "$LOADFONTS" ]; then
+ for console in $ACTIVE_CONSOLES; do
+ [ -w $console ] || continue
+ if which consolechars >/dev/null; then
+ if [ "$bigfont" = yes ]; then
+ echo "setupcon: The consolechars utility from the console-setup font can load only fonts with 8 pixel width matrix. Please install the setfont utility from the kbd package." >&2
+ fi
+ if [ "$LOADFONT_MAP" ]; then
+ eval consolechars -v --tty=$console -f $LOADFONTS -u "$LOADFONT_MAP" $verbose
+ else
+ eval consolechars -v --tty=$console -f $LOADFONTS $verbose
+ fi
+ elif which setfont >/dev/null; then
+ if [ "$LOADFONT_MAP" ]; then
+ eval setfont -v -C $console $LOADFONTS -u "$LOADFONT_MAP" $verbose
+ else
+ eval setfont -v -C $console $LOADFONTS $verbose
+ fi
+ fi
+ done
+ fi
+
+ # Load the ACM
+ if [ ! -f "$CONSOLE_MAP" ]; then
+ for dir in \
+ /usr/local/share/consoletrans \
+ /usr/share/consoletrans \
+ /etc/console-setup
+ do
+ if [ -f "$dir/$CHARMAP.acm.gz" ]; then
+ CONSOLE_MAP="$dir/$CHARMAP.acm.gz"
+ break
+ fi
+ done
+ fi
+ if [ -f "$CONSOLE_MAP" ]; then
+ if \
+ [ "$save" = yes ] \
+ && [ "${CONSOLE_MAP%/*}" != /etc/console-setup ]
+ then
+ cp "$CONSOLE_MAP" /etc/console-setup/
+ fi
+ else
+ CONSOLE_MAP="$CHARMAP.acm.gz"
+ fi
+ if \
+ [ "$save_only" != yes ] && [ "$CHARMAP" != UTF-8 ] && [ "$LOADFONTS" ]
+ then
+ for console in $ACTIVE_CONSOLES; do
+ [ -w $console ] || continue
+ if which consolechars >/dev/null; then
+ eval consolechars -v --tty=$console --acm "$CONSOLE_MAP" $verbose
+ elif which setfont >/dev/null; then
+ eval setfont -v -C $console -m "$CONSOLE_MAP" $verbose
+ fi
+ done
+ fi
+
+ STTY=""
+ [ -z "$SCREEN_WIDTH" ] || STTY="$STTY cols $SCREEN_WIDTH"
+ [ -z "$SCREEN_HEIGHT" ] || STTY="$STTY rows $SCREEN_HEIGHT"
+
+ if [ -n "$STTY" ]
+ then
+ for console in $ACTIVE_CONSOLES; do
+ [ -r $console ] || continue
+ stty $STTY < $console
+ done
+ fi
+fi
+
+#-----------------------#
+# INPUT #
+#-----------------------#
+
+if [ "$font_only" != yes -a "$XKBMODEL" != unknown ]; then
+ # On Mac PPC machines, we may need to set kernel vars first. We need
+ # to mount /proc to do that, but we need it set up before sulogin may
+ # be run in checkroot, which will need the keyboard to log in...
+ # This code was borrowed from the keymap.sh script of console-common
+ # Copyright © 2001 Yann Dirson
+ # Copyright © 2001 Alcove http://www.alcove.fr/
+ if [ "$save_only" != yes ] && \
+ [ -x /sbin/sysctl ] && [ -r /etc/sysctl.conf ]; then
+ if grep -v '^\#' /etc/sysctl.conf | grep -q keycodes ; then
+ grep keycodes /etc/sysctl.conf | grep -v "^#" \
+ | while read d ; do
+ /sbin/sysctl -w $d 2> /dev/null || true
+ done
+ fi
+ fi
+
+ if [ "$save_only" != yes ]; then
+ for console in $ACTIVE_CONSOLES; do
+ [ -w $console ] || continue
+ if which kbd_mode >/dev/null; then
+ if [ "$CHARMAP" = UTF-8 ] || [ -z "$CONSOLE_MAP" ]; then
+ kbd_mode -u <$console
+ else
+ kbd_mode -a <$console
+ fi
+ fi
+ done
+ fi
+
+ if which loadkeys >/dev/null; then
+ if [ "$CHARMAP" != UTF-8 ]; then
+ acm_option="-charmap $CHARMAP"
+ else
+ acm_option=''
+ fi
+
+ if [ "$XKBRULES" ]; then
+ rules_option="-rules $XKBRULES"
+ else
+ rules_option=''
+ fi
+
+ if \
+ [ "$VARIANT" = '' ] \
+ && which gzip >/dev/null \
+ && [ -d /usr/share ] # /usr is mounted
+ then
+ if \
+ [ ! -f /etc/console-setup/cached.kmap.gz ] \
+ || [ /etc/console-setup/cached.kmap.gz \
+ -ot /etc/default/keyboard ] \
+ || [ "$save" = yes ]
+ then
+ ckbcomp $acm_option $rules_option -model "$XKBMODEL" \
+ "$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" \
+ | gzip -9 2>/dev/null >/etc/console-setup/cached.kmap.gz
+ # avoid warnings when /etc is mounted read-only
+ fi
+ fi
+
+ if [ "$save_only" != yes ]; then
+ if [ "$KMAP" -a -f "$KMAP" ]; then
+ eval loadkeys "$KMAP" $verbose
+ else
+ if \
+ [ "$VARIANT" = '' ] && [ "$CONFIG" != "$USER_CONFIG" ] \
+ && [ -f /etc/console-setup/cached.kmap.gz ] \
+ && [ ! /etc/console-setup/cached.kmap.gz \
+ -ot /etc/default/keyboard ]
+ then
+ eval loadkeys /etc/console-setup/cached.kmap.gz $verbose
+ else
+ if [ -d /usr/share/X11/xkb ]; then
+ ckbcomp $acm_option $rules_option \
+ -model "$XKBMODEL" \
+ "$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" \
+ | eval loadkeys $verbose
+ elif [ -f /etc/console-setup/cached.kmap.gz ]; then
+ eval loadkeys /etc/console-setup/cached.kmap.gz $verbose
+ fi
+ fi
+ fi
+ fi
+ fi
+fi
1 bin/sh
1 bin/sh.distrib
BIN bin/sleep
Binary file not shown.
BIN bin/stty
Binary file not shown.
BIN bin/su
Binary file not shown.
BIN bin/sync
Binary file not shown.
BIN bin/tailf
Binary file not shown.
BIN bin/tar
Binary file not shown.
BIN bin/tempfile
Binary file not shown.
BIN bin/touch
Binary file not shown.
BIN bin/true
Binary file not shown.
BIN bin/umount
Binary file not shown.
BIN bin/uname
Binary file not shown.
3 bin/uncompress
@@ -0,0 +1,3 @@
+#!/bin/bash
+PATH=${GZIP_BINDIR-'/bin'}:$PATH
+exec gzip -d "$@"
100 bin/unicode_start
@@ -0,0 +1,100 @@
+#!/bin/sh
+
+# 0. Check whether we're on a console
+TTY="`/usr/bin/tty`"
+case "$TTY" in
+ /dev/console|/dev/vc*|/dev/tty[0-9]*)
+ ;;
+ *)
+ echo "unicode_start skipped on $TTY" >&2
+ exit 0
+ ;;
+esac
+
+# Enables Unicode processing in the current console.
+#
+
+if [ ! -e /proc/self/fd/0 ] ; then
+ echo "Won't set unicode mode: Can't determine console type;" >&2
+ echo " Please ensure that /proc is mounted." >&2
+ exit 1
+fi
+
+readlink /proc/self/fd/0 | grep -q -e /dev/vc -e '/dev/tty[^p]' -e /dev/console
+if [ $? -eq 1 ]; then
+ echo "Won't set unicode mode: not a VT." >&2
+ exit 1
+fi
+
+# 1. The input side: the keyboard driver.
+
+# Set the keyboard driver in Unicode mode. (Default is ASCII mode.)
+# This really does nothing with the way normal keys are handled in
+# the kernel. All it does is:
+# - It is necessary for `dumpkeys' in order to not drop U+XXXX
+# entries from the keymaps.
+# - It is necessary for `loadkeys' in order to avoid warnings.
+# - Unicode characters typed as Alt-x1 ... Alt-xn (where x1,...,xn
+# are digits on the numeric keypad) will be emitted in UTF-8.
+
+kbd_mode -u
+
+# Change the keyboard mapping in such a way that the non-ASCII keys
+# produce UTF-8 encoded multibyte sequences, instead of single bytes
+# >= 0x80 in a legacy 8-bit encoding.
+
+# Non-root users are allowed to change the unicode mode of their console, but
+# not the global keymap. root will have to load the keymap in unicode mode
+# explicitly.
+
+uid="`id -u 2>/dev/null`" ||:
+if [ "$uid" = '0' ]; then
+ # There is no way of reverting the effect of "dumpkeys | loadkeys --unicode",
+ # the memory of the earlier keymap is lost. Therefore, try
+ # to save a copy of the original keymap to be able to reload it in unicode_stop.
+ # (see also http://mail.nl.linux.org/linux-utf8/2003-08/msg00053.html):
+
+ [ -n "$HOME" -a "$HOME" != '/' ] ||
+ HOME='/root'
+
+ if [ -d "$HOME" -a -w "$HOME" ]; then
+ [ -d "$HOME/.kbd" ] ||
+ mkdir -- "$HOME/.kbd"
+
+ [ ! -w "$HOME/.kbd" ] ||
+ dumpkeys > "$HOME/.kbd/.keymap_sv"
+ fi
+
+ # redirect stderr and stdout of loadkeys to /dev/null to avoid the confusing
+ # "plus before udiaeresis ignored" warnings.
+
+ dumpkeys | loadkeys --unicode > /dev/null 2>&1
+fi
+
+# 2. The output side: the console screen.
+
+# Tell the console output driver that the bytes arriving are UTF-8
+# encoded multibyte sequences.
+if [ -t 1 -a -t 2 ]; then
+ printf '\033%%G'
+fi
+stty iutf8
+
+# Tell the graphics card how to display Unicode characters not
+# contained in the IBM 437 character set (on PCs). The font should
+# have a Unicode map attached, or explicitly specified, e.g.,
+# by giving `def.uni' as a second argument.
+
+case "$#" in
+ 2)
+ setfont "$1" -u "$2"
+ ;;
+ 1)
+ setfont "$1"
+ ;;
+ 0)
+ ;;
+ *)
+ echo "usage: unicode_start [font [unicode map]]"
+ ;;
+esac
BIN bin/vdir
Binary file not shown.
63 bin/which
@@ -0,0 +1,63 @@
+#! /bin/sh
+set -ef
+
+if test -n "$KSH_VERSION"; then
+ puts() {
+ print -r -- "$*"
+ }
+else
+ puts() {
+ printf '%s\n' "$*"
+ }
+fi
+
+ALLMATCHES=0
+
+while getopts a whichopts
+do
+ case "$whichopts" in
+ a) ALLMATCHES=1 ;;
+ ?) puts "Usage: $0 [-a] args"; exit 2 ;;
+ esac
+done
+shift $(($OPTIND - 1))
+
+if [ "$#" -eq 0 ]; then
+ ALLRET=1
+else
+ ALLRET=0
+fi
+case $PATH in
+ (*[!:]:) PATH="$PATH:" ;;
+esac
+for PROGRAM in "$@"; do
+ RET=1
+ IFS_SAVE="$IFS"
+ IFS=:
+ case $PROGRAM in
+ */*)
+ if [ -f "$PROGRAM" ] && [ -x "$PROGRAM" ]; then
+ puts "$PROGRAM"
+ RET=0
+ fi
+ ;;
+ *)
+ for ELEMENT in $PATH; do
+ if [ -z "$ELEMENT" ]; then
+ ELEMENT=.
+ fi
+ if [ -f "$ELEMENT/$PROGRAM" ] && [ -x "$ELEMENT/$PROGRAM" ]; then
+ puts "$ELEMENT/$PROGRAM"
+ RET=0
+ [ "$ALLMATCHES" -eq 1 ] || break
+ fi
+ done
+ ;;
+ esac
+ IFS="$IFS_SAVE"
+ if [ "$RET" -ne 0 ]; then
+ ALLRET=1
+ fi
+done
+
+exit "$ALLRET"
BIN bin/ypdomainname
Binary file not shown.
3 bin/zcat
@@ -0,0 +1,3 @@
+#!/bin/bash
+PATH=${GZIP_BINDIR-'/bin'}:$PATH
+exec gzip -cd "$@"
3 bin/zcmp
@@ -0,0 +1,3 @@
+#!/bin/bash
+PATH=${GZIP_BINDIR-'/bin'}:$PATH
+exec zdiff --__cmp "$@"
161 bin/zdiff
@@ -0,0 +1,161 @@
+#!/bin/bash
+# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
+
+# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
+# Copyright (C) 1993 Jean-loup Gailly
+
+# 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, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+PATH=${GZIP_BINDIR-'/bin'}:$PATH
+
+case $1 in
+ --__cmp) shift
+ prog=cmp; cmp='${CMP-cmp}' ;;
+ *) prog=diff; cmp='${DIFF-diff}';;
+esac
+
+version="z$prog (gzip) 1.3.12
+Copyright (C) 2007 Free Software Foundation, Inc.
+This is free software. You may redistribute copies of it under the terms of
+the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
+There is NO WARRANTY, to the extent permitted by law.
+
+Written by Jean-loup Gailly."
+
+usage="Usage: $0 [OPTION]... FILE1 [FILE2]
+Compare FILE1 to FILE2, using their uncompressed contents if they are
+compressed. If FILE2 is omitted, compare FILE1 to the uncompressed
+contents of FILE1.gz. Do comparisons like '$prog' does.
+
+OPTIONs are the same as for '$prog'.
+
+Report bugs to <bug-gzip@gnu.org>."
+
+# sed script to escape all ' for the shell, and then (to handle trailing
+# newlines correctly) turn trailing X on last line into '.
+escape='
+ s/'\''/'\''\\