А у прыщей вообще есть API для выключения питания USB из юзерспейса? echo 0 > /sys/bus/usb/devices/*/authorized
не выключает.
Пользуясь случаем передаю лучи жидкого поноса инженерам компании Huawei.
Играюсь с неймспейсами и узнаю много нового о современном прыщавом неймспейсе. Угадай прыщепроблему:
-bash-4.2$ skype
/opt/skype-oss/skype: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
-bash-4.2$ stat /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.1/32/libstdc++.so.6
File: '/usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.1/32/libstdc++.so.6' -> 'libstdc++.so.6.0.18'
Size: 19 Blocks: 0 IO Block: 4096 symbolic link
Device: 801h/2049d Inode: 1737291 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ UNKNOWN)
Access: 2013-10-08 15:31:13.964322458 +0000
Modify: 2013-10-08 15:31:13.964322458 +0000
Change: 2013-10-08 15:31:26.089247333 +0000
Birth: -
-bash-4.2$ ls -la /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.1/32/libstdc++.so.6
lrwxrwxrwx 1 root 0 19 Oct 8 15:31 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.1/32/libstdc++.so.6 -> libstdc++.so.6.0.18
-bash-4.2$ ls -la /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.1/32/libstdc++.so.6
lrwxrwxrwx 1 root 0 19 Oct 8 15:31 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.1/32/libstdc++.so.6 -> libstdc++.so.6.0.18
-bash-4.2$ grep 4.8.1 /etc/ld.so.conf.d/05
05binutils.conf 05gcc-x86_64-pc-linux-gnu.conf
-bash-4.2$ grep 4.8.1 /etc/ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1
-bash-4.2$ grep conf.d /etc/ld.so.conf
include ld.so.conf.d/*.conf
Чем измерить rtt до хоста, если админ - долбоёб и дропает ICMP echo request? В общем случае есть открытый tcp-порт.
Cumshot:
lid)
if [ $(echo "ibase=16;echo $value | tr '[:lower:]' '[:upper:]'
% 2" | bc) == 0 ]; then
sleep 1
umask 0022
avconv -f video4linux2 -i /dev/video0 -f image2 -frames:v 1 /var/tmp/faces/face-date +%s
.jpeg
else
DISPLAY=":0.0" xautolock -locknow
fi
wlan0 Interface doesn't support scanning.
[ 3538.868881] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 3538.869026] iwlwifi 0000:03:00.0: irq 41 for MSI/MSI-X
[ 3538.869789] iwlwifi 0000:03:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[ 3538.870838] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
[ 3538.870841] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
[ 3538.870843] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled
[ 3538.870844] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_P2P enabled
[ 3538.870846] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Wireless-N 2200 BGN, REV=0x104
[ 3538.870946] iwlwifi 0000:03:00.0: L1 Enabled; Disabling L0S
[ 3654.758146] iwlwifi 0000:03:00.0: L1 Enabled; Disabling L0S
[ 3654.765727] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0
[ 3655.004415] iwlwifi 0000:03:00.0: L1 Enabled; Disabling L0S
[ 3655.011996] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0