#!/bin/bash

if [[ `id -u` != 0 ]]; then
    echo "Script will work only with root rights"
    exit 1
fi
#cp -f "\${ROOTFSDIR}"/root/hardware/mig/t8s-fly-camera.conf "\${ROOTFSDIR}"/etc/xdg/rusbitech/fly-camera.conf
find /home -type f -name "fly-camera.conf" -exec rm -f {} \;
cp -f /root/hardware/mig/t8s-v51-fly-camera.conf /etc/xdg/rusbitech/fly-camera.conf
#systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
