The init script of chef-client was moified for auto registration of a node.