shell scripts to initialize device using sysfs