gitlab-ci
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/init.d/colors.sh
|
||||
. /etc/init.d/init-funcs
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$UYELLOW** Setting up hostname\n$RESET"
|
||||
/bin/hostname -F /etc/hostname
|
||||
check $? "Set up hostname"
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "$0 init script usage: $0 {start}"
|
||||
return 1
|
||||
esac
|
||||
return $?
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/init.d/init-funcs
|
||||
. /etc/init.d/colors.sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$UYELLOW Starting networking\n$RESET"
|
||||
printf "$UYELLOW** Starting networking\n$RESET"
|
||||
/sbin/ifup -a &> /dev/null
|
||||
check $? "networking"
|
||||
echo $! > /var/run/networking.pid
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/init.d/init-funcs
|
||||
. /etc/init.d/colors.sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "$UYELLOW** Mounting virtual filesystems\n$RESET"
|
||||
mount -t tmpfs tmpfs /var/run
|
||||
check $? "Mount virtual filesystems"
|
||||
echo $! > /var/run/networking.pid
|
||||
;;
|
||||
stop)
|
||||
printf "$UYELLOW Umounting virtual filesystems\n$RESET"
|
||||
umount /var/run
|
||||
check $? "Umount virtual filesystems"
|
||||
rm /var/run/networking.pid
|
||||
;;
|
||||
restart|reload)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "$0 init script usage: $0 {start|stop|restart|reload}"
|
||||
return 1
|
||||
esac
|
||||
return $?
|
||||
+1
-1
@@ -1 +1 @@
|
||||
\h \r (\l)\n
|
||||
\h \r (\l)
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../init.d/hostname
|
||||
+1
@@ -0,0 +1 @@
|
||||
../init.d/virtualfilesystems
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../init.d/networking
|
||||
Reference in New Issue
Block a user