system-linux: move device settings handling to device.c