diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-03 01:40:19 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-03 01:40:19 +0900 |
| commit | 0dd679f7afe987fb96c131111af26a626d69d322 (patch) | |
| tree | ebccfa7ad8b1d15c6076472f092f7c780be3d585 /ar/.local/bin/mounter | |
| parent | f31caaf57e83d2d6675f58ce12155194210dd180 (diff) | |
modified plugins/colorizer.lua, modified bin/mounter, modified statusbar/sb-forecast
Diffstat (limited to 'ar/.local/bin/mounter')
| -rwxr-xr-x | ar/.local/bin/mounter | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ar/.local/bin/mounter b/ar/.local/bin/mounter index e62f61b..54b6eb5 100755 --- a/ar/.local/bin/mounter +++ b/ar/.local/bin/mounter @@ -91,7 +91,7 @@ rawdisks="$(echo "$lsblkoutput" | awk ' ' | sed "s/^/💾 /" | filter)" # Get all available IP addresses with open Samba shares in the wlan0 subnet, excluding eth0 IP -smbips="$(sudo arp-scan --interface=eth0 --interface=wlan0 --localnet | grep -vEi '(EFM Networks|DUP:)' | awk '/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/{print $1}')" +smbips="$(sudo arp-scan --interface=eth0 --interface=wlan0 --localnet 2>/dev/null | grep -vEi '(EFM Networks|DUP:)' | awk '/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/{print $1}')" # Get currently mounted CIFS shares mountedsmbs="$(grep 'cifs' /etc/mtab)" @@ -109,7 +109,7 @@ username=$(whoami) password=$(pass show default/mac) EOF ) - smb=$( + linux=$( smbclient -L "$smbip" -U% -A /dev/stdin <<EOF 2>/dev/null | awk '/Disk/ {print $1}' | grep -vEi '(ADMIN|\w)\$|Macintosh' username=$(whoami) password=$(pass show default/default) @@ -129,7 +129,7 @@ EOF if ! echo "$smbshares" | grep -q "$share"; then smbshares+="//$smbip/$share"$'\n' fi - done <<<"$smb" + done <<<"$linux" done smbshares="$(echo "$smbshares" | sed '/^$/d')" |
