/
usr
/
sbin
/
/usr/sbin
mkdir
upload
Name
Size
Mode
Actions
accessdb
14808
0755
edit
dl
rm
add-shell
1053
0755
edit
dl
rm
addgroup
43432
0755
edit
dl
rm
adduser
43432
0755
edit
dl
rm
agetty
110152
0755
edit
dl
rm
aspell-autobuildhash
13708
0755
edit
dl
rm
badblocks
43432
0755
edit
dl
rm
blkdiscard
35208
0755
edit
dl
rm
blkid
43432
0755
edit
dl
rm
blkzone
92552
0755
edit
dl
rm
blockdev
43432
0755
edit
dl
rm
bootlogd
43432
0755
edit
dl
rm
cfdisk
43432
0755
edit
dl
rm
chcpu
47496
0755
edit
dl
rm
check_forensic
952
0755
edit
dl
rm
chgpasswd
68016
0755
edit
dl
rm
chmem
72072
0755
edit
dl
rm
chpasswd
97368
0755
edit
dl
rm
chroot
51624
0755
edit
dl
rm
convertquota
80688
0755
edit
dl
rm
cron
60064
0755
edit
dl
rm
ctrlaltdel
43432
0755
edit
dl
rm
cytune
43432
0755
edit
dl
rm
debugfs
43432
0755
edit
dl
rm
delgroup
21209
0755
edit
dl
rm
deluser
21209
0755
edit
dl
rm
depmod
43432
0755
edit
dl
rm
dpkg-preconfigure
4563
0755
edit
dl
rm
dpkg-reconfigure
4536
0755
edit
dl
rm
dumpe2fs
43432
0755
edit
dl
rm
e2fsck
43432
0755
edit
dl
rm
e2image
43432
0755
edit
dl
rm
e2label
43432
0755
edit
dl
rm
e2undo
43432
0755
edit
dl
rm
edquota
89360
0755
edit
dl
rm
faillock
22776
0755
edit
dl
rm
fdformat
43432
0755
edit
dl
rm
fdisk
43432
0755
edit
dl
rm
findfs
43432
0755
edit
dl
rm
fsck
43432
0755
edit
dl
rm
fsck.cramfs
43432
0755
edit
dl
rm
fsck.ext2
43432
0755
edit
dl
rm
fsck.ext3
43432
0755
edit
dl
rm
fsck.ext4
43432
0755
edit
dl
rm
fsck.ext4dev
43432
0755
edit
dl
rm
fsck.minix
43432
0755
edit
dl
rm
fsck.nfs
43432
0755
edit
dl
rm
fsfreeze
14728
0755
edit
dl
rm
fstab-decode
14576
0755
edit
dl
rm
fstrim
88456
0755
edit
dl
rm
getty
43432
0755
edit
dl
rm
groupadd
43432
0755
edit
dl
rm
groupdel
43432
0755
edit
dl
rm
groupmod
43432
0755
edit
dl
rm
grpck
63928
0755
edit
dl
rm
grpconv
59672
0755
edit
dl
rm
grpunconv
59672
0755
edit
dl
rm
halt
43432
0755
edit
dl
rm
httxt2dbm
14576
0755
edit
dl
rm
hwclock
43432
0755
edit
dl
rm
iconvconfig
31128
0755
edit
dl
rm
ifconfig
43432
0755
edit
dl
rm
ifdown
43432
0755
edit
dl
rm
ifup
43432
0755
edit
dl
rm
init
43432
0755
edit
dl
rm
insmod
43432
0755
edit
dl
rm
insserv
43432
0755
edit
dl
rm
installkernel
43432
0755
edit
dl
rm
invoke-rc.d
43432
0755
edit
dl
rm
ipmaddr
43432
0755
edit
dl
rm
iptunnel
43432
0755
edit
dl
rm
isosize
43432
0755
edit
dl
rm
ispell-autobuildhash
15895
0755
edit
dl
rm
killall5
43432
0755
edit
dl
rm
ldattach
35208
0755
edit
dl
rm
ldconfig
988168
0755
edit
dl
rm
logrotate
92328
0755
edit
dl
rm
losetup
43432
0755
edit
dl
rm
MAKEDEV
43432
0755
edit
dl
rm
mii-tool
43432
0755
edit
dl
rm
mke2fs
43432
0755
edit
dl
rm
mkfs
43432
0755
edit
dl
rm
mkfs.bfs
43432
0755
edit
dl
rm
mkfs.cramfs
43432
0755
edit
dl
rm
mkfs.ext2
43432
0755
edit
dl
rm
mkfs.ext3
43432
0755
edit
dl
rm
mkfs.ext4
43432
0755
edit
dl
rm
mkfs.ext4dev
43432
0755
edit
dl
rm
mkfs.minix
43432
0755
edit
dl
rm
mkhomedir_helper
14600
0755
edit
dl
rm
mkswap
43432
0755
edit
dl
rm
modinfo
43432
0755
edit
dl
rm
modprobe
43432
0755
edit
dl
rm
nameif
43432
0755
edit
dl
rm
newusers
109536
0755
edit
dl
rm
nologin
22912
0755
edit
dl
rm
pam-auth-update
21441
0755
edit
dl
rm
pam_getenv
2890
0755
edit
dl
rm
pam_namespace_helper
467
0755
edit
dl
rm
pam_timestamp_check
14584
0755
edit
dl
rm
pivot_root
43432
0755
edit
dl
rm
plipconfig
43432
0755
edit
dl
rm
policy-rc.d
21
0755
edit
dl
rm
poweroff
43432
0755
edit
dl
rm
pwck
59784
0755
edit
dl
rm
pwconv
55560
0755
edit
dl
rm
pwhistory_helper
22776
0755
edit
dl
rm
pwunconv
55576
0755
edit
dl
rm
quotacheck
114128
0755
edit
dl
rm
quotaoff
85200
0755
edit
dl
rm
quotaon
85200
0755
edit
dl
rm
quotastats
14416
0755
edit
dl
rm
quota_nld
84848
0755
edit
dl
rm
rarp
43432
0755
edit
dl
rm
raw
43432
0755
edit
dl
rm
rdev
43432
0755
edit
dl
rm
readprofile
43432
0755
edit
dl
rm
reboot
43432
0755
edit
dl
rm
remove-default-ispell
2932
0755
edit
dl
rm
remove-default-wordlist
2931
0755
edit
dl
rm
remove-shell
1111
0755
edit
dl
rm
repquota
85360
0755
edit
dl
rm
resize2fs
43432
0755
edit
dl
rm
rmmod
43432
0755
edit
dl
rm
rmt
64704
0755
edit
dl
rm
rmt-tar
64704
0755
edit
dl
rm
route
43432
0755
edit
dl
rm
rpc.rquotad
89168
0755
edit
dl
rm
rtcwake
55688
0755
edit
dl
rm
runlevel
43432
0755
edit
dl
rm
runuser
84360
0755
edit
dl
rm
select-default-ispell
3303
0755
edit
dl
rm
select-default-wordlist
3284
0755
edit
dl
rm
sendmail
1963
0755
edit
dl
rm
service
9215
0755
edit
dl
rm
setquota
97616
0755
edit
dl
rm
sfdisk
43432
0755
edit
dl
rm
shadowconfig
43432
0755
edit
dl
rm
shutdown
43432
0755
edit
dl
rm
slattach
43432
0755
edit
dl
rm
split-logfile
2415
0755
edit
dl
rm
start-stop-daemon
44464
0755
edit
dl
rm
startpar
43432
0755
edit
dl
rm
sulogin
43432
0755
edit
dl
rm
swaplabel
18824
0755
edit
dl
rm
swapoff
51584
0755
edit
dl
rm
swapon
43432
0755
edit
dl
rm
switch_root
43432
0755
edit
dl
rm
sysctl
43432
0755
edit
dl
rm
tarcat
936
0755
edit
dl
rm
tune2fs
43432
0755
edit
dl
rm
tunelp
43432
0755
edit
dl
rm
unix_chkpwd
43256
2755
edit
dl
rm
unix_update
43256
0755
edit
dl
rm
update-ca-certificates
5672
0755
edit
dl
rm
update-default-aspell
1028
0755
edit
dl
rm
update-default-ispell
9910
0755
edit
dl
rm
update-default-wordlist
7680
0755
edit
dl
rm
update-dictcommon-aspell
1028
0755
edit
dl
rm
update-dictcommon-hunspell
782
0755
edit
dl
rm
update-fonts-alias
5852
0755
edit
dl
rm
update-fonts-dir
4076
0755
edit
dl
rm
update-fonts-scale
6244
0755
edit
dl
rm
update-gsfontmap
390
0755
edit
dl
rm
update-info-dir
1700
0755
edit
dl
rm
update-passwd
43432
0755
edit
dl
rm
update-rc.d
43432
0755
edit
dl
rm
update-shells
4066
0755
edit
dl
rm
useradd
43432
0755
edit
dl
rm
userdel
43432
0755
edit
dl
rm
usermod
43432
0755
edit
dl
rm
vigr
74520
0755
edit
dl
rm
vipw
74520
0755
edit
dl
rm
warnquota
97520
0755
edit
dl
rm
wipefs
51592
0755
edit
dl
rm
xqmstats
14416
0755
edit
dl
rm
zic
63816
0755
edit
dl
rm
zramctl
137736
0755
edit
dl
rm
Edit:
/usr/sbin/update-fonts-scale
(6244B)
#!/bin/sh # $Id: update-fonts-scale 189 2005-06-11 00:04:27Z branden $ # This program generates fonts.scale files for X font directories; see # mkfontdir(1x) for a description of the format of fonts.scale files. # Copyright 1999-2002, 2004 Branden Robinson. # Copyright 2006 Steve Langasek. # Licensed under the GNU General Public License, version 2. See the file # /usr/share/common-licenses/GPL or <https://www.gnu.org/copyleft/gpl.txt>. PROGNAME=${0##*/} # Query the terminal to establish a default number of columns to use for # displaying messages to the user. This is used only as a fallback in the event # the COLUMNS variable is not set. ($COLUMNS can react to SIGWINCH while the # script is running, and this cannot, only being calculated once.) DEFCOLUMNS=$(stty size 2>/dev/null | awk '{print $2}') || true if ! expr "$DEFCOLUMNS" : "[[:digit:]]\+$" >/dev/null 2>&1; then DEFCOLUMNS=80 fi # Display a message, wrapping lines at the terminal width. message () { echo "$*" | fmt -t -w ${COLUMNS:-$DEFCOLUMNS} } # Display a debugging message. trace () { if [ -n "$DEBUG" ]; then message "note: $*" >&2 fi } # Display a warning message. warn () { message "warning: $*" >&2 } # Display an error message and exit. die () { message "fatal error: $*" >&2 exit 1 } # Display a usage message. usage () { if [ -n "$*" ]; then message "usage error: $*" fi cat <<EOF Usage: $PROGNAME DIRECTORY ... $PROGNAME { -h | --help } This program combines scalable X font information from several packages into a single file that is placed in each specified X font directory DIRECTORY. This utility is primarily useful to Debian package maintainer scripts. See update-fonts-scale(8) for more information. Options: -h, --help display this usage message and exit EOF } X11R7_LAYOUT= # Validate arguments. case "$1" in -h|--help) usage exit 0 ;; -7|--x11r7-layout) X11R7_LAYOUT=true shift ;; esac case "$1" in -*) usage "unrecognized option" >&2 exit 2 ;; esac if [ $# -eq 0 ]; then usage "one or more font directories must be specified" >&2 exit 2 fi while [ -n "$1" ]; do # Try to be clever about the argument; were we given an absolute path? if expr "$1" : "/.*" >/dev/null 2>&1; then # Yes; an absolute path to an X font directory was provided. X11R7DIR=$1 ETCDIR=/etc/X11/fonts/${X11R7DIR##*/} ETC7DIR=/etc/X11/fonts/X11R7/${X11R7DIR##*/} if [ "$X11R7DIR" = "$ETCDIR" ] || [ "$X11R7DIR" = "$ETC7DIR" ]; then # We were given an /etc directory as an argument. die "path to X font directory must be used" else warn "absolute path $X11R7DIR was provided" fi else # No; a relative path was provided -- assume we were given just the # basename. X11R7DIR=/usr/share/fonts/X11/$1 ETCDIR=/etc/X11/fonts/$1 ETC7DIR=/etc/X11/fonts/X11R7/$1 fi shift # Confirm that the directories to be operated on exist. VALIDSRC= if [ -d "$ETCDIR" ]; then VALIDSRC=yes else warn "$ETCDIR does not exist or is not a directory" fi if [ -d "$ETC7DIR" ]; then VALIDSRC=yes else if [ -n "$X11R7_LAYOUT" ]; then warn "$ETC7DIR does not exist or is not a directory" fi fi VALIDDEST= if [ -d "$X11R7DIR" ]; then VALIDDEST=yes else warn "$X11R7DIR does not exist or is not a directory" fi if [ -z "$VALIDSRC" ] || [ -z "$VALIDDEST" ]; then continue fi # Are there any files to process? if [ "$(echo "$ETCDIR"/*.scale "$ETC7DIR"/*.scale)" != "$ETCDIR/*.scale $ETC7DIR/*.scale" ] then if [ -n "$X11R7DIR" ] && [ -d "$X11R7DIR" ]; then for SCALEFILE in "$ETCDIR"/*.scale "$ETC7DIR"/*.scale; do [ -e "$SCALEFILE" ] || continue # Only write fonts to the .scale file that actually exist, so # that removed-but-not-purged scalable font packages do not # register nonexistent fonts; this has the desirable side effect # that the count at the top of the file is also omitted. # # XXX: This technique will be tricked into yielding false # negatives if the font filename has whitespace in it. while read FONTFILE FONTNAME; do if [ -f "$X11R7DIR/$FONTFILE" ]; then echo "$FONTFILE $FONTNAME" \ >>"$X11R7DIR/fonts.scale.update-tmp" else trace "$SCALEFILE references nonexistent font file" \ "$FONTFILE; skipping" fi done <"$SCALEFILE" done if [ -e "$X11R7DIR/fonts.scale.update-tmp" ]; then # Write the new scale file to a temporary location in case we # are interrupted. Write the new count to the top of file. Use # cat and pipe to wc so wc doesn't report the filename. cat "$X11R7DIR/fonts.scale.update-tmp" \ | wc -l | tr -d '[:blank:]' \ >"$X11R7DIR/fonts.scale.update-new" cat "$X11R7DIR/fonts.scale.update-tmp" \ >>"$X11R7DIR/fonts.scale.update-new" mv "$X11R7DIR/fonts.scale.update-new" "$X11R7DIR/fonts.scale" rm "$X11R7DIR/fonts.scale.update-tmp" else # No font in the processed *.scale files was in the current # directory, so remove fonts.scale. rm -f "$X11R7DIR/fonts.scale" fi fi else if [ -n "$X11R7DIR" ] && [ -d "$X11R7DIR" ]; then # No files to process; remove any fonts.scale file already in the # font directory. rm -f "$X11R7DIR/fonts.scale" # Remove the font directory if it is empty. rmdir "$X11R7DIR" >/dev/null 2>&1 || true fi fi done exit 0 # vim:set ai et sts=4 sw=4 tw=80:
Save
cmd:
run