Please do not expect a readymade script, as it will give you nothing to learn. But do some hit & trials, search over google, follow any guides... and then if you stuck with any command or syntax or symbols... then we're here to help you.
A shell script is nothing, but a list of commands, but in correct order.
In the meantime, I will give you some hints:
#!/bin/bash # Script interpreter
ID=$(grep 'some-id' /proc/cpuinfo) # Strong some-id's value in a variable named ID
ifconfig ethx up # Some operation