- Timestamp:
- Jul 22, 2006, 6:45:35 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- d30e6bd
- Parents:
- abca342
- Location:
- package
- Files:
-
- 5 edited
-
base-files/default/etc/functions.sh (modified) (2 diffs)
-
dnsmasq/ipkg/dnsmasq.postinst (modified) (1 diff)
-
dropbear/ipkg/dropbear.postinst (modified) (1 diff)
-
iptables/ipkg/iptables.postinst (modified) (1 diff)
-
openssh/ipkg/openssh-server.postinst (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
package/base-files/default/etc/functions.sh
rabca342 r621ecb5 103 103 104 104 rcconf_exists() { 105 grep -q " $1" $IPKG_INSTROOT/etc/rc.conf 2>&-105 grep -q "^#*$1=" $IPKG_INSTROOT/etc/rc.conf 2>&- 106 106 return $? 107 107 } … … 130 130 131 131 add_rcconf() { 132 rcconf_exists $ 1 $2 || {132 rcconf_exists $2 || { 133 133 echo "adding service $1 to /etc/rc.conf" 134 echo "$2" >>$IPKG_INSTROOT/etc/rc.conf134 printf '%s\t\t# %s\n' "$2=$3" "$1" >>$IPKG_INSTROOT/etc/rc.conf 135 135 } 136 136 } -
package/dnsmasq/ipkg/dnsmasq.postinst
rabca342 r621ecb5 5 5 add_user dnsmasq $(get_next_uid) $gid /tmp 6 6 add_group dnsmasq $gid 7 add_rcconf dnsmasq "dns_dhcp=YES"7 add_rcconf dnsmasq dns_dhcp YES -
package/dropbear/ipkg/dropbear.postinst
rabca342 r621ecb5 1 1 #!/bin/sh 2 2 . $IPKG_INSTROOT/etc/functions.sh 3 add_rcconf dropbear "ssh=YES"3 add_rcconf dropbear ssh YES -
package/iptables/ipkg/iptables.postinst
rabca342 r621ecb5 1 1 #!/bin/sh 2 2 . $IPKG_INSTROOT/etc/functions.sh 3 add_rcconf iptables "firewall=NO"3 add_rcconf iptables firewall NO -
package/openssh/ipkg/openssh-server.postinst
rabca342 r621ecb5 3 3 add_user sshd $(get_next_uid) $(get_next_gid) /var/run/sshd 4 4 add_group sshd $(get_next_gid) 5 add_rcconf sshd "sshd=NO"5 add_rcconf openssh sshd NO
Note:
See TracChangeset
for help on using the changeset viewer.
