#!/bin/sh . /usr/share/libubox/jshn.sh device_get_vars() { json_init json_load "$(ubus call block info)" json_select devices json_get_keys keys for key in $keys do json_select $key json_get_var device device [ "$device" = "$1" ] && { shift json_get_vars $@ json_select .. break } json_select .. done json_select .. } [ -f /var/run/config/samba ] || { mkdir -p /var/run/config && touch /var/run/config/samba } [ "$ACTION" = "add" ] && { device_get_vars $DEVICE label mount [ -n "$mount" ] && { uci -c /var/run/config batch <<-EOF set samba.$DEVICE="sambashare" set samba.$DEVICE.name="$label" set samba.$DEVICE.path="$mount" set samba.$DEVICE.browseable="yes" set samba.$DEVICE.read_only="yes" set samba.$DEVICE.guest_ok="yes" commit samba EOF /etc/init.d/samba reload } } [ "$ACTION" = "remove" ] && { uci -c /var/run/config batch <<-EOF delete samba.$DEVICE commit samba EOF /etc/init.d/samba reload } .35-kobo
kobo glo HD kernel from kobolabs https://github.com/kobolabs/Kobo-Reader/tree/master/hw/imx6sl-glohdJames
aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf533/Kconfig
blob: 4c572443147e62d0f32b81ca0cc9d1297ccb2625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95