
Code: Select all
#! /bin/bash
echo "1bac013d"Code: Select all
PATH="/opt/fake_hostid/bin:$PATH" yourprogramCode: Select all
#include <stdio.h>
#include <unistd.h>
int
main()
{
if (sethostid(gethostid())) {
perror("sethostid");
}
}
Code: Select all
gcc -o save_hostid save_hostid.cCode: Select all
man 3 sethostid
man 3 perror

This means only ethernet is supported and wireless is not mentioned as available (can be a dumb program). As well as the net.ifnames=0 kernel command-line option needs to be included.FLEXnet license manager only understand network interfaces starting with ethX and with network interface names like emX, pXpX, virbrX will return a null MAC address.
This is nothing that is relevant as you can't change it.prestige787 wrote:The ifconfig command has the loop back first, and the actual card second. Is there any way to change this?

Code: Select all
./lmutil lmhostid