# Instalare

Acest proiect are acum doua fluxuri distincte:

1. `deploy/attempt1/deploy_tb.sh`
   - bootstrap complet
   - poate actualiza si fisierele de retea per-host
2. `scripts/install.sh` sau `setup.sh`
   - reinstalare/upgrade pentru shared runtime
   - NU atinge `/etc/network/interfaces` si `interfaces.d/10-thunderbolt`

## Reinstalare standardizata

### Local

```bash
sudo ./setup.sh --local
```

### Remote

```bash
sudo ./setup.sh baobab
sudo ./setup.sh ebony tapia
```

Ce instaleaza:
- `/usr/local/lib/xdev/thunderbolts/tb-recover.sh`
- `/usr/local/lib/xdev/thunderbolts/uninstall.sh`
- `/usr/local/sbin/tb-recover.sh`
- `/usr/local/sbin/xdev-thunderbolts-uninstall`
- `/etc/systemd/system/tb-bridge.service`
- `/etc/systemd/system/tb-enlist@.service`
- `/etc/systemd/system/tb-recover.service`
- `/etc/systemd/system/tb-recover.timer`
- `/etc/udev/rules.d/90-thunderbolt-net-systemd.rules`
- `/usr/local/share/doc/xdev/thunderbolts/*`

Ce NU atinge:
- `/etc/network/interfaces`
- `/etc/network/interfaces.d/10-thunderbolt`

## Uninstall standardizat

```bash
sudo ./setup.sh --local --uninstall
sudo ./setup.sh --uninstall baobab
```

Sau direct pe host:

```bash
sudo /usr/local/lib/xdev/thunderbolts/uninstall.sh
```

Uninstall-ul elimina doar shared runtime:
- unit-urile systemd
- regula udev
- `tb-recover.sh`
- documentatia instalata

Nu restaureaza si nu sterge fisierele de retea.
