#!/bin/sh
new_uuid="00000000-1234-5678-9012-012345678901" # Bitte anpassen!
arguments=$@
uuid_stop=0
uuid=""
for i in $@; do
if [ $uuid_stop = 1 ]; then
uuid=$i
break;
fi
if [ "$i" = "-uuid" ]; then
uuid_stop=1
fi
done
new_arguments=$(echo $arguments | sed "s/-uuid\ $uuid/-uuid\ $new_uuid/g")
exec /var/packages/Virtualization/target/bin/qemu-system-x86_64.bin $new_arguments
sh-4.3# pwd
/var/packages/Virtualization/target/bin
sh-4.3# ls -l
total 45908
-rwxr-xr-x 1 root root 15962504 Aug 14 05:02 etcd
-rwxr-xr-x 1 root root 13650888 Aug 14 05:02 etcdctl
-rwxr-xr-x 1 root root 375488 Aug 14 05:02 ivshmem-client
-rwxr-xr-x 1 root root 400064 Aug 14 05:02 ivshmem-server
-rwxr-xr-x 1 root root 1709096 Aug 14 05:02 qemu-img
-rwxr-xr-x 1 root root 1668392 Aug 14 05:02 qemu-io
-rwxr-xr-x 1 root root 1668776 Aug 14 05:02 qemu-nbd
-rwxr-xr-x 1 root root 381 Oct 11 07:35 qemu-system-x86_64
-rwxr-xr-x 1 root root 10169600 Aug 14 05:02 qemu-system-x86_64.bin
-rwx------ 1 root root 257241 Aug 14 05:02 synocccd
-rwx------ 1 root root 45883 Aug 14 05:02 synoccc_gsnap
-rwx------ 1 root root 54203 Aug 14 05:02 synoccc_gsnappolicy
-rwx------ 1 root root 37627 Aug 14 05:02 synoccc_gsnapsched
-rwx------ 1 root root 29442 Aug 14 05:02 synocccguest
-rwx------ 1 root root 33387 Aug 14 05:02 synocccstated
-rwx------ 1 root root 104123 Aug 14 05:02 synoccctool
-rwx------ 1 root root 932 Aug 14 05:02 synoetcd
-rwxr-xr-x 1 root root 293600 Aug 14 05:02 synohostcmdd
-rwxr-xr-x 1 root root 25035 Aug 14 05:02 synohostcommd
-rwx------ 1 root root 49683 Aug 14 05:02 synovncrelayd
-rwxr-xr-x 1 root root 404416 Aug 14 05:02 virtfs-proxy-helper
-rwx------ 1 root root 2751 Aug 14 05:01 vmm_disklocation
-rwx------ 1 root root 8411 Aug 14 05:01 vmm_rhel2vmm
sh-4.3# ls -l /usr/local/bin/
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.