add forgotten files re. systemd and pmount.

use more recent kernel
pull/10/head
Raphaël Vinot 2014-08-01 16:06:28 +02:00
parent 5c50940ed6
commit 2c48aa5260
8 changed files with 88 additions and 2 deletions

56
fs/etc/group Normal file
View File

@ -0,0 +1,56 @@
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:pi
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:pi
fax:x:21:
voice:x:22:
cdrom:x:24:pi
floppy:x:25:
tape:x:26:
sudo:x:27:pi
audio:x:29:pi
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:pi
sasl:x:45:
plugdev:x:46:pi,kitten
staff:x:50:
games:x:60:pi
users:x:100:pi
nogroup:x:65534:
libuuid:x:101:
crontab:x:102:
pi:x:1000:
ssh:x:103:
ntp:x:104:
netdev:x:105:pi
input:x:999:pi
messagebus:x:106:
lpadmin:x:107:
fuse:x:108:
lightdm:x:109:
indiecity:x:1001:root
spi:x:1002:pi
gpio:x:1003:pi
weston-launch:x:110:
kitten:x:1004:
systemd-journal:x:111:

5
fs/etc/pmount.allow Normal file
View File

@ -0,0 +1,5 @@
# /etc/pmount.allow
# pmount will allow users to additionally mount all devices that are
# listed here.
/dev/sdb1
/dev/sda*

View File

@ -12,6 +12,7 @@
# By default this script does nothing.
clean(){
echo 'Rc Local done, quit.'
systemctl poweroff
}
@ -27,7 +28,9 @@ if [ -e /dev/sda ]; then
cd /opt/groomer
/usr/sbin/led &
# avoid possible misuse
/sbin/ifconfig eth0 down
systemctl stop display-manager
systemctl stop sshd
systemctl stop dbus-org.freedesktop.ModemManager1
./init.sh
systemctl poweroff
fi

View File

@ -0,0 +1 @@
kitten hard priority -20

View File

@ -0,0 +1,13 @@
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=oneshot
ExecStart=/etc/rc.local start
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,2 @@
KERNEL=="sdc", SYMLINK+="mmcblk0"
KERNEL=="sdc?", SYMLINK+="mmcblk0p%n",

View File

@ -5,6 +5,12 @@ set -e
source ./constraint.sh
killed(){
echo 'Music stopped.'
}
trap killed EXIT TERM INT
# Force output on analog
amixer cset numid=3 1

View File

@ -2,7 +2,7 @@
set timeout -1
spawn qemu-system-arm -kernel 140730-kernel -cpu arm1176 -m 200 -M versatilepb \
spawn qemu-system-arm -kernel 140801-kernel -cpu arm1176 -m 256 -M versatilepb \
-append "root=/dev/sdc2 panic=1 rootfstype=ext4 ro console=ttyAMA0 console=ttyS0" \
-drive file=[lindex $argv 1],index=0,media=disk \
-drive file=[lindex $argv 2],index=1,media=disk \