Changed the function from appending to writing to prevent duplicate entries in the inittab file which causes the some minor cosmetic errors.