This needs to be $bonding = "echo 'bonding' >> /target/etc/modules"