blob: c8277d9a5f2a8bb1bbff319c4105e418c928d4d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
install_elk() {
cp ./elk.hook /etc/initcpio/hooks/elk
cp ./elk.install /etc/initcpio/install/elk
echo "Run 'mkinitcpio -P' to rebuild the initramfs"
}
[ "$1" = "elk" ] && install_elk && exit
USB_UUID="$1"
[ -z "$USB_UUID" ] && echo ./install [UUID] && exit
sed ./keyusbctl -e "s/\[USB_UUID\]/${USB_UUID}/g" > /usr/local/sbin/keyusbctl
cp ./usb-unplug.rules /etc/udev/rules.d/
chmod +x /usr/local/sbin/keyusbctl
echo "Run 'udevadm control --reload' to reload the udev rules"
install_elk
|