Changeset 79


Ignore:
Timestamp:
Sep 2, 2010, 10:21:29 AM (8 years ago)
Author:
amain
Message:

Several small changes to the rootfs

Location:
debwrt/trunk/debian/rootfs
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • debwrt/trunk/debian/rootfs

    • Property ignore set to
      unpack
      post-setup
      files-install
      modules-install
      old-files
  • debwrt/trunk/debian/rootfs/files/etc/init.d/rcS.firstboot

    r75 r79  
    3838/bin/echo "- rm -rf /var/cache/apt/archives"
    3939/bin/echo "- mkdir -p /var/cache/apt/archives/partial"
     40/bin/echo "- for Lenny: dpkg-reconfigure dash"
    4041/bin/echo "- optional: rm -rf /lib/modules ( note: used when preparing an image for a DebWrt release )"
    4142/bin/echo
  • debwrt/trunk/debian/rootfs/files/usr/bin/led

    r69 r79  
    1515if [ "`echo $sleep | egrep ^[0-9\.]+$`" = "" ]; then sleep=1; fi
    1616
    17 function led_kill()
     17led_kill ()
    1818{
    1919   ps x | grep "/usr/bin/led .*loop" | grep -v grep | awk '{print $1}' | xargs -r kill
    2020}
    2121
    22 function led_off()
     22led_off ()
    2323{
    2424   echo "0">/proc/diag/led/power 2>/dev/null
    2525}
    2626
    27 function led_on()
     27led_on ()
    2828{
    2929   echo "1">/proc/diag/led/power 2>/dev/null
    3030}
    3131
    32 function trigger()
     32trigger ()
    3333{
    3434   led_on
     
    3636}
    3737
    38 trap 'trigger' SIGINT SIGQUIT SIGHUP SIGTERM
     38trap 'trigger' 2 3 1 9 15
    3939
    4040/sbin/modprobe diag >/dev/null 2>&1
    4141[ ! -f /proc/diag/led/power ] && exit 1
    4242
    43 if [ "off" == "$ARG1" ]; then
     43if [ "off" = "$ARG1" ]; then
    4444   led_kill
    4545   led_off
    4646   exit 0
    47 elif [ "on" == "$ARG1" ]; then
     47elif [ "on" = "$ARG1" ]; then
    4848   led_kill
    4949   led_on
     
    5151fi
    5252
    53 if [ ! "loop" == "$ARG2" ]; then
     53if [ ! "loop" = "$ARG2" ]; then
    5454   led_kill
    5555   exec $0 $ARG1 loop &
Note: See TracChangeset for help on using the changeset viewer.