Patch

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Wie funktioniert ein Patch

Original Datei

interfaces.org
auto eth0
iface eth0 inet static
 address XX.XX.XX.XX/YY
 gateway ZZ.ZZ.ZZ.ZZ

Gewünschte Datei

interfaces.new
auto eth0
iface eth0 inet static
 address 192.168.88.99/24 
 gateway 192.168.88.1

Erzeugen einer Diff Datei

  • diff interfaces.org interfaces.new | tee interfaces.diff
3,4c3,4
<  address XX.XX.XX.XX/YY
<  gateway ZZ.ZZ.ZZ.ZZ
---
>  address 192.168.88.99/24 
>  gateway 192.168.88.1