mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
RH7/Centos7 and recent versions of fedora relocate `/*bin/*` into `/usr/*bin/`. This causes conflicts for upgrades against xCAT-genesis-scripts-* packages which expect the `/bin` a to be a directory while `xCAT-genesis-base-*` packages provide a link. Relocating all files into `/usr` fixes that conflict and allows a clean upgrade from all old versions.
13 lines
246 B
Awk
Executable File
13 lines
246 B
Awk
Executable File
#!/usr/bin/awk -f
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
BEGIN {
|
|
xcatdport = ARGV[2]
|
|
xcatdhost = ARGV[1]
|
|
delete ARGV[1]
|
|
delete ARGV[2]
|
|
RS=rand()
|
|
}
|
|
END {
|
|
print $0 |& "/inet/udp/301/"xcatdhost"/"xcatdport
|
|
}
|