2019-05-28 22:54:07 +04:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2019-10-24 17:04:16 +04:00
|
|
|
. /etc/os-release
|
2019-05-28 00:00:09 +04:00
|
|
|
|
2019-10-24 17:04:16 +04:00
|
|
|
if [ $ID = arch ]
|
|
|
|
then
|
|
|
|
pacman -Sy
|
|
|
|
sudo pacman -S --noconfirm \
|
|
|
|
libevdev \
|
|
|
|
perl \
|
|
|
|
pkg-config \
|
|
|
|
gmp \
|
|
|
|
hidapi \
|
|
|
|
m4 \
|
|
|
|
libcap \
|
|
|
|
bubblewrap \
|
2019-12-17 00:32:10 +04:00
|
|
|
rsync \
|
|
|
|
git
|
2019-10-24 17:04:16 +04:00
|
|
|
|
|
|
|
else
|
|
|
|
apt-get update -qq
|
|
|
|
apt-get -y -qq install \
|
|
|
|
libev-dev \
|
|
|
|
perl \
|
|
|
|
pkg-config \
|
|
|
|
libgmp-dev \
|
|
|
|
libhidapi-dev \
|
|
|
|
m4 \
|
|
|
|
libcap-dev \
|
|
|
|
bubblewrap \
|
2019-12-17 00:32:10 +04:00
|
|
|
rsync \
|
|
|
|
git
|
2019-10-24 17:04:16 +04:00
|
|
|
fi
|