the original modprobe
command had a switch -o to rename a module when loading it into the kernel. This was useful for modules that needed to be loaded multiple times.
e.g.
modprobe bonding -o bond0 mode=active-backup miimon=100 primary=eth2 max_bonds=2
modprobe bonding -o bond1 mode=active-backup miimon=100 primary=eth3 max_bonds=2
in Ubuntu 14.04 modprobe seems to be replaced by kmod, which doesn't support the -o switch.
Is there a new way to load a module multiple times?