Date:2012-04-04 12:27:31 (8 years 2 months ago)
Author:Xiangfu
Commit:78095b19d2389c7de37a389d4712faafe01bbce3
Message:nanonote-files: cleanup etc/ files

Files: nanonote-files/data/qi_lb60/files/etc/asound.state (1 diff)
nanonote-files/data/qi_lb60/files/etc/config/network (1 diff)
nanonote-files/data/qi_lb60/files/etc/config/system (1 diff)
nanonote-files/data/qi_lb60/files/etc/directfbrc (1 diff)
nanonote-files/data/qi_lb60/files/etc/fw_env.config (1 diff)
nanonote-files/data/qi_lb60/files/etc/hosts (1 diff)
nanonote-files/data/qi_lb60/files/etc/init.d/ben-nanonote (1 diff)
nanonote-files/data/qi_lb60/files/etc/triggerhappy/triggers.d/poweroff.conf (1 diff)
nanonote-files/data/qi_lb60/files/etc/uci-defaults/01-optimization-for-ben-nanonote (1 diff)
nanonote-files/data/qi_lb60/files/etc/uci-defaults/02-gforth-work-around (1 diff)
nanonote-files/data/qi_lb60/files/etc/uci-defaults/03-python-work-around (1 diff)
nanonote-files/script-files/etc/asound.state (1 diff)
nanonote-files/script-files/etc/config/network (1 diff)
nanonote-files/script-files/etc/directfbrc (1 diff)
nanonote-files/script-files/etc/fw_env.config (1 diff)
nanonote-files/script-files/etc/hosts (1 diff)
nanonote-files/script-files/etc/init.d/ben-nanonote (1 diff)
nanonote-files/script-files/etc/triggerhappy/triggers.d/poweroff.conf (1 diff)
nanonote-files/script-files/etc/uci-defaults/01-optimization-for-ben-nanonote (1 diff)
nanonote-files/script-files/etc/uci-defaults/02-gforth-work-around (1 diff)
nanonote-files/script-files/etc/uci-defaults/03-python-work-around (1 diff)

Change Details

nanonote-files/data/qi_lb60/files/etc/asound.state
1state.LB60 {
2    control.1 {
3        iface MIXER
4        name 'Master Playback Volume'
5        value 3
6        comment {
7            access 'read write'
8            type INTEGER
9            count 1
10            range '0 - 3'
11        }
12    }
13    control.2 {
14        iface MIXER
15        name 'Master Capture Volume'
16        value 31
17        comment {
18            access 'read write'
19            type INTEGER
20            count 1
21            range '0 - 31'
22        }
23    }
24    control.3 {
25        iface MIXER
26        name 'Master Playback Switch'
27        value true
28        comment {
29            access 'read write'
30            type BOOLEAN
31            count 1
32        }
33    }
34    control.4 {
35        iface MIXER
36        name 'Mic Capture Volume'
37        value 2
38        comment {
39            access 'read write'
40            type INTEGER
41            count 1
42            range '0 - 3'
43        }
44    }
45    control.5 {
46        iface MIXER
47        name 'Line Capture Switch'
48        value true
49        comment {
50            access 'read write'
51            type BOOLEAN
52            count 1
53        }
54    }
55    control.6 {
56        iface MIXER
57        name 'Mic Capture Switch'
58        value true
59        comment {
60            access 'read write'
61            type BOOLEAN
62            count 1
63        }
64    }
65    control.7 {
66        iface MIXER
67        name 'Output Mixer Bypass Switch'
68        value false
69        comment {
70            access 'read write'
71            type BOOLEAN
72            count 1
73        }
74    }
75    control.8 {
76        iface MIXER
77        name 'Output Mixer DAC Switch'
78        value true
79        comment {
80            access 'read write'
81            type BOOLEAN
82            count 1
83        }
84    }
85}
nanonote-files/data/qi_lb60/files/etc/config/network
1# Copyright (C) 2006 OpenWrt.org
2
3config interface loopback
4    option ifname lo
5    option proto static
6    option ipaddr 127.0.0.1
7    option netmask 255.0.0.0
8
9config interface lan
10    option ifname usb0
11    option proto static
12    option ipaddr 192.168.254.101
13    option netmask 255.255.255.0
14    option gateway 192.168.254.100
15    option dns "8.8.8.8 8.8.4.4"
16    option hostname BenNanoNote
nanonote-files/data/qi_lb60/files/etc/config/system
1config system
2    option hostname BenNanoNote
3    option timezone UTC
nanonote-files/data/qi_lb60/files/etc/directfbrc
1no-deinit-check
2
3mode=320x240
4
5# log-file=/root/.directfb.log
6# no-cursor
7# debug
nanonote-files/data/qi_lb60/files/etc/fw_env.config
1# Configuration file for fw_(printenv/saveenv) utility.
2# Up to two entries are valid, in this case the redundant
3# environment sector is assumed present.
4# Notice, that the "Number of sectors" is ignored on NOR.
5
6# MTD device name Device offset Env. size Flash sector size Number of sectors
7/dev/mtd0 0x100000 0x1000 0x80000
8/dev/mtd0 0x180000 0x1000 0x80000
9
10# NAND example
11#/dev/mtd0 0x4000 0x4000 0x20000 2
nanonote-files/data/qi_lb60/files/etc/hosts
1127.0.0.1 BenNanoNote localhost
nanonote-files/data/qi_lb60/files/etc/init.d/ben-nanonote
1#!/bin/sh /etc/rc.common
2
3START=01
4STOP=01
5
6start() {
7    /usr/bin/poke 0x10003024 0
8    /usr/sbin/alsactl restore -f /etc/asound.state
9    return 0
10}
11
12stop() {
13    /usr/sbin/alsactl store -f /etc/asound.state
14    killall gmenu2x.bin
15    return 0
16}
nanonote-files/data/qi_lb60/files/etc/triggerhappy/triggers.d/poweroff.conf
1# This is an example configuration for the triggerhappy daemon (thd)
2# please note that every file to be processed must end in ".conf"
3#
4# To view a list of supported event codes, use "thd --listevents" or
5# "thd --dump /dev/input/event*"
6#
7# Format:
8# <eventcode> <value> <command>
9#
10# values for key events are 1 (pressed), 0 (released) or 2 (held)
11#
12## control an mpd instance
13KEY_POWER 1 /sbin/poweroff
nanonote-files/data/qi_lb60/files/etc/uci-defaults/01-optimization-for-ben-nanonote
1#!/bin/sh
2
3# no need in NanoNote
4/etc/init.d/atd disable
5/etc/init.d/led disable
6/etc/init.d/telnet disable
7
8# write default u-boot env to nand
9/usr/bin/mtd.nn fw_setenv_default
10
11# generate fontconfig cache
12/usr/bin/fc-cache
13
14exit 0
nanonote-files/data/qi_lb60/files/etc/uci-defaults/02-gforth-work-around
1#!/bin/sh
2
3(cd /usr/lib; ln -s libffi.so.5.0.10 libffi.so.4)
nanonote-files/data/qi_lb60/files/etc/uci-defaults/03-python-work-around
1#!/bin/sh
2
3rm -f /usr/lib/python2.6/lib-dynload/readline.so
nanonote-files/script-files/etc/asound.state
1state.LB60 {
2    control.1 {
3        iface MIXER
4        name 'Master Playback Volume'
5        value 3
6        comment {
7            access 'read write'
8            type INTEGER
9            count 1
10            range '0 - 3'
11        }
12    }
13    control.2 {
14        iface MIXER
15        name 'Master Capture Volume'
16        value 31
17        comment {
18            access 'read write'
19            type INTEGER
20            count 1
21            range '0 - 31'
22        }
23    }
24    control.3 {
25        iface MIXER
26        name 'Master Playback Switch'
27        value true
28        comment {
29            access 'read write'
30            type BOOLEAN
31            count 1
32        }
33    }
34    control.4 {
35        iface MIXER
36        name 'Mic Capture Volume'
37        value 2
38        comment {
39            access 'read write'
40            type INTEGER
41            count 1
42            range '0 - 3'
43        }
44    }
45    control.5 {
46        iface MIXER
47        name 'Line Capture Switch'
48        value true
49        comment {
50            access 'read write'
51            type BOOLEAN
52            count 1
53        }
54    }
55    control.6 {
56        iface MIXER
57        name 'Mic Capture Switch'
58        value true
59        comment {
60            access 'read write'
61            type BOOLEAN
62            count 1
63        }
64    }
65    control.7 {
66        iface MIXER
67        name 'Output Mixer Bypass Switch'
68        value false
69        comment {
70            access 'read write'
71            type BOOLEAN
72            count 1
73        }
74    }
75    control.8 {
76        iface MIXER
77        name 'Output Mixer DAC Switch'
78        value true
79        comment {
80            access 'read write'
81            type BOOLEAN
82            count 1
83        }
84    }
85}
nanonote-files/script-files/etc/config/network
1# Copyright (C) 2006 OpenWrt.org
2
3config interface loopback
4    option ifname lo
5    option proto static
6    option ipaddr 127.0.0.1
7    option netmask 255.0.0.0
8
9config interface lan
10    option ifname usb0
11    option proto static
12    option ipaddr 192.168.254.101
13    option netmask 255.255.255.0
14    option gateway 192.168.254.100
15    option dns "8.8.8.8 8.8.4.4"
16    option hostname BenNanoNote
nanonote-files/script-files/etc/directfbrc
1no-deinit-check
2
3mode=320x240
4
5# log-file=/root/.directfb.log
6# no-cursor
7# debug
nanonote-files/script-files/etc/fw_env.config
1# Configuration file for fw_(printenv/saveenv) utility.
2# Up to two entries are valid, in this case the redundant
3# environment sector is assumed present.
4# Notice, that the "Number of sectors" is ignored on NOR.
5
6# MTD device name Device offset Env. size Flash sector size Number of sectors
7/dev/mtd0 0x100000 0x1000 0x80000
8/dev/mtd0 0x180000 0x1000 0x80000
9
10# NAND example
11#/dev/mtd0 0x4000 0x4000 0x20000 2
nanonote-files/script-files/etc/hosts
1127.0.0.1 BenNanoNote localhost
nanonote-files/script-files/etc/init.d/ben-nanonote
1#!/bin/sh /etc/rc.common
2
3START=01
4STOP=01
5
6start() {
7    /usr/bin/poke 0x10003024 0
8    /usr/sbin/alsactl restore -f /etc/asound.state
9    return 0
10}
11
12stop() {
13    /usr/sbin/alsactl store -f /etc/asound.state
14    killall gmenu2x.bin
15    return 0
16}
nanonote-files/script-files/etc/triggerhappy/triggers.d/poweroff.conf
1# This is an example configuration for the triggerhappy daemon (thd)
2# please note that every file to be processed must end in ".conf"
3#
4# To view a list of supported event codes, use "thd --listevents" or
5# "thd --dump /dev/input/event*"
6#
7# Format:
8# <eventcode> <value> <command>
9#
10# values for key events are 1 (pressed), 0 (released) or 2 (held)
11#
12## control an mpd instance
13KEY_POWER 1 /sbin/poweroff
nanonote-files/script-files/etc/uci-defaults/01-optimization-for-ben-nanonote
1#!/bin/sh
2
3# no need in NanoNote
4/etc/init.d/atd disable
5/etc/init.d/led disable
6/etc/init.d/telnet disable
7
8# write default u-boot env to nand
9/usr/bin/mtd.nn fw_setenv_default
10
11# generate fontconfig cache
12/usr/bin/fc-cache
13
14exit 0
nanonote-files/script-files/etc/uci-defaults/02-gforth-work-around
1#!/bin/sh
2
3(cd /usr/lib; ln -s libffi.so.5.0.10 libffi.so.4)
nanonote-files/script-files/etc/uci-defaults/03-python-work-around
1#!/bin/sh
2
3rm -f /usr/lib/python2.6/lib-dynload/readline.so

Archive Download the corresponding diff file



interactive