|
@ -18,32 +18,46 @@ done |
|
|
enable_trapping |
|
|
enable_trapping |
|
|
draw_progress_bar 0 |
|
|
draw_progress_bar 0 |
|
|
log '.: Setting up sono-os v0.1.0 :.' |
|
|
log '.: Setting up sono-os v0.1.0 :.' |
|
|
|
|
|
check_superuser |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
draw_progress_bar 5 |
|
|
draw_progress_bar 5 |
|
|
log 'Installing dependancies ...' |
|
|
log 'Installing dependancies ...' |
|
|
# TODO |
|
|
sudo apt -qq update |
|
|
sleep 1 |
|
|
draw_progress_bar 10 |
|
|
|
|
|
sudo apt -qq install -y python3-pip build-essential |
|
|
draw_progress_bar 15 |
|
|
draw_progress_bar 15 |
|
|
|
|
|
|
|
|
|
|
|
log 'Installing pyxlib and pyudev ...' |
|
|
|
|
|
pip3 install pyxlib pyudev -q |
|
|
|
|
|
draw_progress_bar 20 |
|
|
|
|
|
|
|
|
log 'Installing scripts ...' |
|
|
log 'Installing scripts ...' |
|
|
# TODO |
|
|
sudo cp -r src/scripts/python/* /usr/local/bin |
|
|
sleep 1 |
|
|
draw_progress_bar 23 |
|
|
|
|
|
sudo cp src/scripts/setupmonitor.sh /usr/local/bin |
|
|
|
|
|
draw_progress_bar 27 |
|
|
|
|
|
sudo chmod +x /usr/local/bin/setupmonitor.sh |
|
|
|
|
|
draw_progress_bar 30 |
|
|
|
|
|
sudo chmod +x /usr/local/bin/changemouse.py |
|
|
|
|
|
|
|
|
draw_progress_bar 45 |
|
|
draw_progress_bar 45 |
|
|
log 'Installing config files ...' |
|
|
log 'Installing config files ...' |
|
|
# TODO |
|
|
# TODO |
|
|
sleep 1 |
|
|
|
|
|
|
|
|
|
|
|
draw_progress_bar 65 |
|
|
draw_progress_bar 65 |
|
|
log 'Configuring Logger ...' |
|
|
log 'Configuring Logger ...' |
|
|
# TODO |
|
|
# TODO |
|
|
sleep 1 |
|
|
|
|
|
|
|
|
|
|
|
draw_progress_bar 85 |
|
|
draw_progress_bar 85 |
|
|
log 'Copying rules to udev ...' |
|
|
log 'Copying rules to udev ...' |
|
|
|
|
|
sudo cp -r src/rules/* /usr/lib/udev/rules.d |
|
|
|
|
|
sudo udevadm control --reload-rules |
|
|
|
|
|
sudo udevadm trigger |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
draw_progress_bar 95 |
|
|
|
|
|
log 'Install PCIE Driver' |
|
|
# TODO |
|
|
# TODO |
|
|
sleep 1 |
|
|
|
|
|
|
|
|
|
|
|
draw_progress_bar 100 |
|
|
draw_progress_bar 100 |
|
|
destroy_scroll_area |
|
|
destroy_scroll_area |