filesystem: remove rc.sysinit script and modify udev rule. 64/19764/3
authorSooyoung Ha <yoosah.ha@samsung.com>
Thu, 17 Apr 2014 10:32:10 +0000 (19:32 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Thu, 17 Apr 2014 11:16:01 +0000 (20:16 +0900)
remove filesystem/etc/rc.d/rc.sysinit file's contents include chown command.
modify filesystem/usr/lib/udev/rules.d/95-tizen-emulator.rules file.

Change-Id: Ife9f0853c2b0a07417414913af3caf99687ad6b5
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
filesystem/etc/rc.d/rc.sysinit
filesystem/usr/lib/udev/rules.d/95-tizen-emulator.rules
packaging/system-plugin-emulator.changes

index 324431b221051968889d4979a46699aa94524c3b..ca75fdcd03d9ed7ff4df099dc83200eae3391b4e 100755 (executable)
@@ -7,153 +7,6 @@ _Y='\033[0;33;1m'     #Yellow
 C_='\033[0m'           #Color off
 
 echo -e "[${_G}rc.sysinit : script starts${C_}]"
-echo -e "[${_G}mount...${C_}]"
-mount -t proc none /proc  
-mount -t tmpfs tmpfs /tmp
-#for emulator : /var/run only for supporting dpkg command
-mount -t tmpfs tmpfs /var/run
-mount -t sysfs none /sys    
-mount -t tmpfs runfs /run
-mount -t devtmpfs devtmpfs /dev
-mkdir -p /dev/pts
-mkdir -p /dev/shm
-mount -t tmpfs none /dev/shm
-mount -t devpts devpts /dev/pts
-mount -t debugfs none /sys/kernel/debug
-
-echo -e "[${_G}check codec dev node${C_}]"
-test -c /dev/codec || mknod -m 666 /dev/codec c 240 0
-
-echo -e "[${_G}mount filesystems storage${C_}]"
-mount -a
-
-#emulator's swapon
-echo -e "[${_G}mount swap /dev/vdb ${C_}]"
-/sbin/swapon /dev/vdb
-
-
-echo -e "[${_G}udev start${C_}]"
-UDEVD_MAX_CHILDS=1 /sbin/udevd --daemon
-/sbin/udevadm trigger
-
-echo -e "[${_G}create base directory in /opt, /var${C_}]"
-# construct directory hierarchy
-mkdir -p /opt/var/log/apt
-mkdir -p /opt/var/lib
-mkdir -p /opt/var/cache
-mkdir -p /var/run
-
-#make a file for /dev/rtc1
-touch /dev/rtc1
-chmod 777 /dev/rtc1
-
-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/video0
-chown 0:6509 /dev/log_main
-chown 0:6509 /dev/log_events
-chown 0:6509 /dev/log_radio
-chown :audio /dev/snd/
-chmod 775 /dev/snd/
-chown :audio /dev/snd/controlC0
-chown :audio /dev/snd/pcmC0D0p
-chown :audio /dev/snd/pcmC0D1p
-chown :audio /dev/snd/timer
-chown 0:6508 /dev/snd/pcmC0D0c
-chown :video /dev/fb0
-chown :video /dev/video1
-chmod 666 /dev/glmem
-chmod 666 /dev/yagl
-
-if [ -e /opt/etc/.coredump ]; then
-       # enable coredump
-       echo "/opt/usr/share/crash/core/%p_%s_%e.core" > /proc/sys/kernel/core_pattern
-       ulimit -c unlimited
-else
-       echo "core dump disabled"
-       ulimit -c 0
-fi
-
-echo -e "[${_G}run profile${C_}]"
-# Run profile
-. /etc/profile
-
-# Check rw mode
-DEVEL_UPDATE_MODE=`grep devel_update_boot /proc/cmdline`
-if [ -f /opt/etc/.devel_update ] && [ -z "$DEVEL_UPDATE_MODE" ]; then
-       touch /opt/etc/.hib_capturing
-       rm /opt/etc/.devel_update
-fi
-
-#for emulator
-echo -e "[${_G}make symbolic link for i686${C_}]"
-cd /usr/lib/enlightenment/modules/comp-slp/
-ln -s linux-gnu-i686-ver-pre-svn-08 linux-gnu-i486-ver-pre-svn-08
-cd /usr/lib/enlightenment/modules/e17-extra-module-keyrouter/
-ln -s linux-gnu-i686-ver-pre-svn-08 linux-gnu-i486-ver-pre-svn-08
-cd /usr/lib/enlightenment/modules/e17-extra-module-wmready/
-ln -s linux-gnu-i686-ver-pre-svn-08 linux-gnu-i486-ver-pre-svn-08
-cd /usr/lib/enlightenment/modules/illume2-slp/
-ln -s linux-gnu-i686-ver-pre-svn-08 linux-gnu-i486-ver-pre-svn-08
-cd /usr/lib/edje/modules/icon_calendar/
-ln -s linux-gnu-i686-1.0.0 linux-gnu-i486-1.0.0
-
-#for emulator : where is press binary?
-/usr/bin/press 1 # wait input to stop running scripts
-if [ $? -eq 0 ]; then
-       echo "script is stopped"
-       # prepare usbnet before exit
-       insmod /opt/driver/g_ether.ko
-       sleep 1
-       ifconfig usb0 192.168.129.3 netmask 255.255.255.0
-       # Run all rc0 scripts
-       for i in /etc/rc.d/rc0.d/*; do
-               echo -e "[${_G}${i} start${C_}]"
-               $i start
-       done
-elif [ -f /opt/etc/.hib_capturing ] && [ -z "$DEVEL_UPDATE_MODE" ]; then
-       echo -e "[${_Y}run all rc4 scripts${C_}]"
-       # Run all rc4 scripts
-       /usr/bin/write-to-lcd /dev/fb3 "Initializing daemons"
-       echo "there is /opt/etc/.hib_capturing  hibernation capturing mode"
-       for i in /etc/rc.d/rc4.d/*; do
-               echo -e "[${_G}${i} start${C_}]"
-               $i start
-       done
-else
-       # Run all rc3 scripts
-       echo -e "[${_G}run all rc3 scripts${C_}]"
-       echo "normal boot"
-       # modify script for checking boot up progress...
-       NUMBER_OF_RCS=`ls /etc/rc.d/rc3.d/ | wc -l`
-       count=0;
-       for i in /etc/rc.d/rc3.d/*; do
-               echo -e "[${_G}${i} start${C_}]"
-               $i start
-               count=$((count + 1))
-               echo `expr $count \* 100 / $NUMBER_OF_RCS` > /dev/esm
-       done
-fi
-
-
-# symbolic link
-if [ ! -e /opt/apps ]; then
-       echo -e "[${_G}link /opt/apps -> /opt/media/apps${C_}]"
-       ln -s /opt/media/apps /opt/apps
-fi
-
-# inhouse home-directory
-chown 5000:5000 /home/inhouse
-
-if [ "$DEVEL_UPDATE_MODE" ]; then
-       touch /opt/etc/.devel_update
-fi
 
 #for emulator : 
 /etc/rc.d/rc.emul
index ca793916df26a643df3914b868145695a484cffc..c73265c03cfc7a31c3c3cc0c654c612630ffe29c 100644 (file)
@@ -11,5 +11,3 @@ KERNEL=="video2",       GROUP="video", MODE="0660", SMACK="device::video"
 
 KERNEL=="vdpram*",      MODE="0644"
 
-# Moved from /etc/rc.d/rc3.d/S30brightness
-SUBSYSTEM=="lcd", ATTR{lcd_power}=="?*", RUN+="/bin/chown :system_bklight 0664 %S/%p/lcd_power"
index 68d7adf22da056ed0ecd452c19bac8e5d3877bb4..f75d92c2617b8f7f5c992f014e6bffdb420fb8f7 100644 (file)
@@ -1,3 +1,6 @@
+* Thu Apr 17 18:03:11 KST 2014 Sooyoung Ha <yoosah.ha@samsung.com>
+- remove rc.sysinit script and modify udev rule.
+
 * Fri Nov  1 06:19:37 UTC 2013 GiWoong Kim <giwoong.kim@samsung.com>
 - modified model-config.sh