tracefile: two char dirs were treated wrongly.

This commit is contained in:
Ole Tange 2019-06-25 14:58:53 +02:00
parent 7b93704129
commit 70ae9392fb
2 changed files with 6 additions and 4 deletions

View file

@ -279,7 +279,7 @@ while(<IN>) {
# Relative to $dir
$file =~ s:^([^/]):$dir/$1:;
$file =~ s:/./:/:g; # /./ => /
$file =~ s:/[^/]+/../:/:g; # /foo/../ => /
$file =~ s:/[^/]+/\.\./:/:g; # /foo/../ => /
# Match files in $PWD or starting with ./
my $local = ($file =~ m<^(\Q$ENV{'PWD'}\E|\./)>);
my $read = readfunc($function,$addinfo);

View file

@ -79,9 +79,11 @@ startnm() {
config() {
IF=$1
sudo bash -c 'cat >> /etc/resolv.conf' < /etc/resolvconf/resolv.conf.d/head
#sudo iwconfig wls1 essid Turris
#sudo iwconfig wls1 essid Leif
sudo iwconfig wls1 essid SKYbroadbandCC95
sudo iwconfig $IF essid Turris
#sudo iwconfig $IF essid olet
#sudo iwconfig $IF essid elverhoej
#sudo iwconfig $IF essid Leif
#sudo iwconfig wls1 essid SKYbroadbandCC95
sudo wpa_supplicant -c/etc/wpa_supplicant.conf -i$IF -d &
sudo dhclient $IF &
}