Skip to content

Commit 62c4eef

Browse files
committed
bluetooth failed again. add more time
1 parent ab86dfa commit 62c4eef

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lenovo/thinkpad/x13s/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,13 @@ in
9191
$[RANDOM%256])"
9292
fi
9393
94+
# bluetooth module can be slow to get ready
95+
# would like to find a better way to handle this.
9496
while ! [ -d /sys/class/bluetooth ] ; do
95-
echo "waiting for bluetooth"
9697
sleep 5
98+
echo "waiting for bluetooth"
9799
done
100+
sleep 5
98101
99102
echo "assigning mac: $BLUETOOTH_MAC"
100103
yes | ${config.hardware.bluetooth.package}/bin/btmgmt --index 0 public-addr $BLUETOOTH_MAC

0 commit comments

Comments
 (0)