restart: remove restart module 28/80928/2
authortaeyoung <ty317.kim@samsung.com>
Thu, 21 Jul 2016 02:45:25 +0000 (11:45 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Thu, 21 Jul 2016 03:35:11 +0000 (20:35 -0700)
- restart module is not used. Thus it is removed

Change-Id: I0366d36cc57f4ec0416000550078274d73ad77e5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/restarter/CMakeLists.txt [deleted file]
src/restarter/restart.c [deleted file]

diff --git a/src/restarter/CMakeLists.txt b/src/restarter/CMakeLists.txt
deleted file mode 100644 (file)
index f125ba9..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(restart C)
-
-SET(SRCS restart.c)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
-
-INCLUDE(FindPkgConfig)
-
-FOREACH(flag ${pkgs_CFLAGS})
-       SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions")
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
-
-ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"")
-IF( $ENV{ARCH} MATCHES "arm" )
-       ADD_DEFINITIONS("-DTARGET")
-ENDIF()
-
-ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
-
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
diff --git a/src/restarter/restart.c b/src/restarter/restart.c
deleted file mode 100644 (file)
index 12345b9..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- *  system-server
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: DongGi Jang <dg0402.jang@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
-*/
-
-
-#include <stdio.h>
-#include <signal.h>
-#include <sys/reboot.h>
-
-int main(int argc, char *argv[])
-{
-       launch_evenif_exist("/etc/rc.d/rc.shutdown", "&");
-       sleep(1);
-       sync();
-       reboot(RB_AUTOBOOT);
-       return 0;
-}