case $OPT_EMBEDDED in yes) emb_helpers=/etc/boot.d/embedded-hw if [ -f $emb_helpers ]; then . $emb_helpers embedded_load_hw_scripts fi begin_script EMBEDDED "generating embedded config file ..." if [ 0$EMBEDDED_LED_N -gt 1 ]; then echo "LED2 blink" > /var/run/embedded.fifo fi : ${EMBEDDED_LED_N:=0} { echo "embedded_led_n='$EMBEDDED_LED_N'" [ 0$EMBEDDED_LED_N -eq 0 ] || for i in `seq 1 $EMBEDDED_LED_N`; do eval 'action=$EMBEDDED_LED_'$i case $action in ready) echo "embedded_ready_led='led$i'" ;; wlan) if [ -n "$EMBEDDED_WLAN_DEV" ] && [ "$OPT_WLAN" = yes ]; then echo "embedded_wlan_led='led$i'" echo "embedded_wlan_dev='$EMBEDDED_WLAN_DEV'" fi ;; online) echo "embedded_online_led='LED$i'" ;; user) if [ -n "$EMBEDDED_USER_SCRIPT" ]; then echo "embedded_user_led='led$i'" echo "embedded_user_script='$EMBEDDED_USER_SCRIPT'" fi ;; esac done echo "embedded_type='$EMBEDDED_TYPE'" hw_file=/etc/boot.d/${EMBEDDED_TYPE}-hw [ -f $hw_file ] && cat $hw_file } > /var/run/embedded.conf end_script ;; esac