case DEVICE in v3 v3ext v3all if MODE nfsroot then echo eink_apollofb

 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
case $DEVICE in
v3|v3ext|v3all)
if [ "$MODE" = "nfsroot" ]; then
echo "eink_apollofb
lbookv3_keys
lbookv3_battery
mmc_block
s3cmci
vfat
evdev" > /rootfs-$ARCH/etc/modules
else
echo "lbookv3_keys
lbookv3_battery
mmc_block
s3cmci
vfat
evdev
mtdchar" > /rootfs-$ARCH/etc/modules
fi
;;
n516)
echo "lm75
jz4740_udc" > /rootfs-$ARCH/etc/modules
;;
esac