mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-16 02:32:16 +03:00
14 lines
174 B
Bash
14 lines
174 B
Bash
|
#!/bin/bash
|
||
|
var=$(lsmod | awk '{print $1}'| grep usblp)
|
||
|
|
||
|
service cups stop
|
||
|
|
||
|
if [ -z "$var" ]
|
||
|
then
|
||
|
echo "USB printer devices are already blocked"
|
||
|
else
|
||
|
rmmod usblp
|
||
|
sleep 2
|
||
|
fi
|
||
|
|