--- /dev/null
+#! /bin/sh
+# Checking special mode booting.
+# * Charging mode: Turn the phone on with the charger connection.
+# * FOTA mode: Firmware update On-The-Air
+#
+
+for i in `/bin/cat /proc/cmdline` ; do
+ echo $i
+ if [ "$i" = "charger_detect_boot" ] || [ "$i" = "fota_update_boot" ]; then
+ exit 0
+ fi
+done
+exit 1
+system-plugin-slp (0.0.1-6) unstable; urgency=low
+
+ * Remove alsa scenario copy from rc.firstboot
+
+ -- KwangHui Cho <kwanghui.cho@samsung.com> Fri, 16 Mar 2012 17:31:42 +0900
+
system-plugin-slp (0.0.1-5) unstable; urgency=low
* Modify license file
rm -f $${f%.in}; \
done
- dh_clean
+ dh_clean
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean -k
dh_installdirs
mkdir -p $(CURDIR)/debian/tmp$(PREFIX)
mkdir -p debian/tmp/usr/share/system-plugin-slp
cp -a $(CURDIR)/etc debian/tmp/usr/share/system-plugin-slp
cp -a $(CURDIR)/usr debian/tmp
+ cp -a $(CURDIR)/bin debian/tmp
cp -a $(CURDIR)/lib debian/tmp
# Build architecture-independent files here.
# For new partition - 2011/10/06
/dev/mmcblk0p1 /csa ext4 defaults 0 0
-/dev/mmcblk0p2 /boot ext4,vfat defaults 0 0
+/dev/mmcblk0p2 /boot ext4 defaults 0 0
/dev/mmcblk0p5 / ext4 defaults 0 0
/dev/mmcblk0p6 /opt ext4 defaults 0 0
/dev/mmcblk0p7 /mnt/csc ext4 defaults,noauto 0 0
/dev/mmcblk0p8 /opt/media vfat uid=0,gid=0,dmask=0000,fmask=0000,iocharset=iso8859-1,utf8,shortname=mixed 0 0
+/boot/modules.img /lib/modules ext4 loop 0 0
--- /dev/null
+FTA HW VERSION : REV0.0
+FTA SW VERSION : TRAST.001
+++ /dev/null
-audio 0:5 0666
-console 0:5 0600
-controlC[0-9] 0:0 0660 @cp -R /dev/$MDEV /dev/snd/
-dsp 0:5 0666
-event[0-9] 0:0 0600
-fb 0:5 0666
-nfs 0:5 0770
-null 0:0 0777
-pcmC[0-1]D[0-9][a-z] 0:0 0660 @mv /dev/$MDEV /dev/snd/
-timer 0:0 0660 @mv /dev/$MDEV /dev/snd/
-rtc 0:0 0666
-tty 0:5 0660
-tty0* 0:5 0660
-tty1* 0:5 0660
-tty2* 0:5 0660
-tty3* 0:5 0660
-tty4* 0:5 0660
-tty5* 0:5 0660
-tty6* 0:5 0660
-ttyS* 0:5 0640
-urandom 0:0 0444
-zero 0:0 0666
# for /etc/.info/system.info
/bin/sysinfo
-# Check 3-touchkey firmware
-/lib/firmware/firmware_upgrade_touchkey.sh
-
ln -s /opt/etc/X11/xorg.conf.d.default /opt/etc/X11/xorg.conf.d
-# Copy alsa scenario file for sound path temporary
-if [ ! -e /opt/etc/sound ]; then
- mkdir -p /opt/etc/sound
-fi
-cp -r /usr/share/ascenario/default /opt/etc/sound/default
-cp -r /usr/share/ascenario/default.conf /opt/etc/sound/default.conf
-
-chown root:soundpath /opt/etc/sound/default.conf
-chown -R root:soundpath /opt/etc/sound/default
-
if [ -e /opt/system/csc/.factoryreset ]; then
rm -f /opt/system/csc/.factoryreset
fi
mount -t devpts devpts /dev/pts
mount -t debugfs none /sys/kernel/debug
-echo -e "[${_G}prepare device node${C_}]"
-if [ ! -e /dev/snd ]; then
- mkdir /dev/snd
-fi
+mknod /dev/null c 1 3
+
+echo -e "[${_G}udev start${C_}]"
+/sbin/udevd --daemon
+/sbin/udevadm trigger
-mdev -s
-mknod /dev/ttySAC1 c 204 65 # UART1 device node for GPS (requested by youngae.kang)
-mknod /dev/ttySAC2 c 204 66
# check special booting mode.
/bin/check-booting-mode.sh
# mount
mount -a
-echo -e "[${_G}udev start${C_}]"
-/sbin/udevd --daemon
-/sbin/udevadm trigger --subsystem-match=iio
+if [ ! -e /opt/etc/.firstboot ]; then
+ ext4_parts=`grep ext4 /etc/fstab | grep mmcblk0 | awk '{print $1};'`
+ for part in $ext4_parts; do
+ echo "resize $part"
+ resize2fs $part
+ done
+ echo -e "[${_Y}rc.firstboot${C_}]"
+ /etc/rc.d/rc.firstboot
+ touch /opt/etc/.firstboot
+ sync
+fi
echo -e "[${_G}create base directory in /opt, /var${C_}]"
# construct directory hierarchy
mkdir -p /var/run
-if [ ! -e /opt/etc/.firstboot ]; then
- echo -e "[${_Y}rc.firstboot${C_}]"
- /etc/rc.d/rc.firstboot
- touch /opt/etc/.firstboot
-fi
-
echo -e "[${_G}set device node perm & security${C_}]"
# Set device node permissions for security
chown 0:6501 /dev/video1
Name: system-plugin-slp
Summary: system-plugin for Clean SDK
Version: 0.0.1
-License: TO BE FILLED IN
+License: Apache-2.0
Group: System/Base
Release: 60
ExclusiveArch: %arm
rm -rf %{buildroot}
mkdir -p %{buildroot}
-cp -a etc usr bin %{buildroot}
-
+cp -a etc usr bin lib %{buildroot}
+%post
+mkdir -p /lib/modules
%files
-/bin/change-booting-mode.sh
/etc/fstab
-/etc/init.d/csa-tools
+/etc/fta_version.txt
/etc/inittab
-/etc/mdev.conf
/etc/mtools.conf
-/etc/rc.d/rc5.d/S99zzzbackup_csa
/etc/rc.d/rc.firstboot
/etc/rc.d/rc.shutdown
/etc/rc.d/rc.sysinit
-/usr/bin/mount_slp.sh
/usr/bin/save_blenv
+/bin/check-booting-mode.sh
/lib/udev/rules.d/99-serial-console.rules
/lib/systemd/system/mnt-csc.automount
/lib/systemd/system/local-fs.target.wants/mnt-csc.automount
-