/
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-default-wordlist
(7680B)
#!/usr/bin/perl -w use strict; use Debian::DictionariesCommon q(:all); use Debconf::Client::ConfModule q(:all); dico_checkroot (); my $triggered; my $skip_symlinks_setting; my $class = "wordlist"; my $program = "update-default-$class"; my $debug = 1 if defined $ENV{'DICT_COMMON_DEBUG'}; # Parse options foreach my $option ( @ARGV ){ if ( $option eq "--skip-symlinks" ){ # Do not try to set symlinks at $linkdir. $skip_symlinks_setting++; } elsif ( $option eq "--rebuild" ){ # info is always rebuilt, so this option is not needed. # It is preserved as a no-op for old maintainer scripts. } elsif ( $option eq "--triggered" ){ # Do not try to enable update-default-$class} trigger but run the script. $triggered++; } else { die "update-default-$class: Bad option \"$option\". Aborting..." } } version ('2.0'); updatedb ($class); my $dictionaries = loaddb ($class); # Preprocess default symlinks dico_preprocess_default_symlinks ($class,$dictionaries); # Enable trigger if needed. Exit cleanly on success. unless ( $triggered ){ exit if dico_activate_trigger("update-default-$class"); } my $manual; my $question = "dictionaries-common/default-$class"; my $iquestion = "dictionaries-common/invalid_debconf_value"; my $debconf_dbase_corruption_question = "dictionaries-common/debconf_database_corruption"; my $newflag = "/var/cache/dictionaries-common/flag-$class-new"; # This flag is intended for remove-default-$class. If we are here we do not # need it any longer, so we reset for future apt runs by cleaning it. if ( -f $newflag ){ print STDERR "$program: Removing $newflag\n" if $debug; unlink $newflag or print STDERR " $program: Warning: could not remove $newflag\n"; } my ($ret, $value) = get ($question); if ( $ret == 0 && $value ){ # Question has a value if ( $value =~ m/^Manual.*/i ){ # Question is set to manual mode print STDERR "$program: Manual mode for \"$class\"\n" if $debug; $manual++; } elsif ( not %$dictionaries ) { # Question has a value, but no manual mode and no class elements available. Unset value. print STDERR "$program: No Manual mode and no $class elements. $question unset.\n" if $debug; $value = ""; set($question,$value); $manual++; } else { # Normal case, question has a value and is set to one of the installed class elements. print STDERR "$program: Default is set to \"$value\" for \"$class\"\n" if $debug; } } elsif ( not %$dictionaries ) { # Question is empty. No default nor class elements available. Proceed as for manual. print STDERR "$program: No \"$class\" elements left.\n" if $debug; $manual++; } else { # Question is empty, but $class elements are installed. # This seems to be debconf database corruption. Warn loudly about it. my %class_pkgs = (); foreach my $lang ( keys %{$dictionaries} ){ if ( defined $dictionaries->{$lang}->{'package'} ){ $class_pkgs{$dictionaries->{$lang}->{'package'}}++; } } my $class_packages = join (', ',sort keys %class_pkgs); subst($debconf_dbase_corruption_question,"class_packages",$class_packages); subst($debconf_dbase_corruption_question,"question",$question); fset ($debconf_dbase_corruption_question,"seen","false"); input("high",$debconf_dbase_corruption_question); title ("dictionaries-common: wordlists"); go (); # Try harder to get a value after default file my $dico_sysdefault = dico_getsysdefault($class); if ( defined $dico_sysdefault ){ # Not undef. Can be an empty or non-empty string. if ( $dico_sysdefault ){ # True: Non-empty string and not 0 if ( defined $dictionaries->{$dico_sysdefault} ){ $value = $dico_sysdefault; set($question,$value); print STDERR "$program: Missing value for \"$question\" question. Using \"$value\"\n"; } } else { # False: The empty string or 0 $value = "Manual symlinks setting (Forced after default file)"; set($question,$value); $manual++; } } } unless ( $manual ){ # Handle invalid debconf values if ( not exists $dictionaries->{$value} ){ # This can happen because either an invalid debconf value or a # void value due to debconf database corruption. Try after stored # values to stay in the safe side. my @available_keys = sort {lc $a cmp lc $b} keys %$dictionaries; my $choices = join (', ', sort {lc $a cmp lc $b} @available_keys); print STDERR "$program: Trying to get a default value from \"$choices\"\n"; my $forced_key = $available_keys[0] || die "$program: Selected wordlist" . " \"$value\" \n" . "does not correspond to any installed package in the system\n" . "and no alternative wordlist could be selected.\n"; # Warn about what might have happened if not debconf database corruption if ( $value ){ subst($iquestion,"value",$value); fset ($iquestion,"seen","false"); input("high",$iquestion); } # Prepare a selection box to get a default. subst ($question, "choices", $choices); # Put sane values in debconf choices field subst ($question, "echoices", $choices); # Put sane values in debconf echoices field set ($question, $forced_key); # Set debconf value to a sane one fset ($question,"seen","false"); input ("critical", $question); title ("dictionaries-common: wordlists"); go (); ($ret, $value) = get ($question); die "\n Could not get a valid value for debconf question:\n" . "$question\n" if ( $ret != 0 ); # This should never be reached # Set manual flag if needed to avoid later symlinking $manual++ if ( $value =~ m/^Manual.*/i ); } } # Set default value for ispell dictionaries and wordlists if ( $manual ){ dico_setsysdefault ($class,""); } else { dico_setsysdefault ($class,$value); } # # Set default symlink(s) and complain if not possible. # For ispell dictionaries using auto-buildhash this should not be done # from dictionaries-common postinst, but from ispell dictionaries postinst. # Otherwise this is called before hashes are autobuild and will fail. # d-c.postinst will call update-default-ispell with --skip-symlinks option. unless ( $skip_symlinks_setting or $manual ) { dico_set_default_symlink($class,$value); } # Local Variables: # perl-indent-level: 2 # End: __END__ =head1 NAME update-default-wordlist - update default wordlist =head1 SYNOPSIS update-default-wordlist [--skip-symlinks] [--triggered] =head1 DESCRIPTION WARNING: Not to be used from the command line unless you know very well what you are doing. This program is intended to be called from wordlist package postinst, from B<select-default-wordlist> or from dictionaries-common postinst. When called under dpkg control with the B<--trigger> option the script is run normally, otherwise the dictionaries-common B<update-default-wordlist> trigger is enabled for later run. With the B<--skip-symlinks> option the symlinks setting is skipped. When run normally (from the command line or with B<--trigger>) this script rebuilds the info at F</var/cache/dictionaries-common/wordlist.db> after files under F</var/lib/dictionaries-common/wordlist>, reads the system default from the debconf database and unless disabled, set default symlinks in F</etc/dictionaries-common> pointing to the appropriate files in F</usr/share/dict/>. =head1 OPTIONS --skip-symlinks Do not try to set symlinks at /etc/dictionaries-common dir. --triggered Run all the code instead of trying to enable update-default-wordlist trigger =head1 SEE ALSO The dictionaries-common policy document =head1 AUTHORS Rafael Laboissiere, Agustin Martin Domingo =cut
Save
cmd:
run